Skip to content

Commit

Permalink
Fix: Upgrades latest-version to 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sarunas committed Oct 10, 2024
1 parent 76264f7 commit b008be4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"fs-extra": "^11.1.0",
"globby": "^11.0.4",
"json-schema-to-typescript": "^11.0.3",
"latest-version": "^5.1.0",
"latest-version": "^7.0.0",
"listr": "^0.14.2",
"listr-inquirer": "^0.1.0",
"markdown-link-validator": "^1.0.1",
Expand Down
3 changes: 2 additions & 1 deletion release/tasks/get-packages.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as path from 'path';

import * as globby from 'globby';
import latest from 'latest-version';

import { Context, Reference } from '../@types/custom';
import { debug } from '../lib/utils';
Expand Down Expand Up @@ -96,6 +95,8 @@ export const getPackages = (ignoredPackages: string[]) => {
* them later via `ctx.packages`.
* Get the latest published version if any.
*/
const { default: latest } = await import('latest-version');

for (const [, pkg] of ctx.packages) {
pkg.references = pkg.references.map((reference) => {
return pathToName.get(reference)!;
Expand Down

0 comments on commit b008be4

Please sign in to comment.