File tree Expand file tree Collapse file tree
apps/generator-cli/src/app/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import * as path from 'path';
88import * as os from 'os' ;
99import * as Stream from 'stream' ;
1010import chalk from 'chalk' ;
11- import compare from 'compare-versions' ;
11+ import { compareVersions } from 'compare-versions' ;
1212import { LOGGER } from '../constants' ;
1313import { ConfigService } from './config.service' ;
1414import * as configSchema from '../../config.schema.json' ;
@@ -86,7 +86,7 @@ export class VersionManagerService {
8686 ) ,
8787 map ( ( versions ) => {
8888 const latestVersion = this . filterVersionsByTags ( versions , [ 'stable' ] )
89- . sort ( ( l , r ) => compare ( l . version , r . version ) )
89+ . sort ( ( l , r ) => compareVersions ( l . version , r . version ) )
9090 . pop ( ) ;
9191 latestVersion . versionTags . push ( 'latest' ) ; // works, because it's a reference
9292 return versions ;
You can’t perform that action at this time.
0 commit comments