Skip to content

Commit 5b6bacf

Browse files
committed
chore: fix compareVersions
1 parent e0300d8 commit 5b6bacf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/generator-cli/src/app/services/version-manager.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as path from 'path';
88
import * as os from 'os';
99
import * as Stream from 'stream';
1010
import chalk from 'chalk';
11-
import compare from 'compare-versions';
11+
import { compareVersions } from 'compare-versions';
1212
import { LOGGER } from '../constants';
1313
import { ConfigService } from './config.service';
1414
import * 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;

0 commit comments

Comments
 (0)