Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Upgrades latest-version to 7.0.0 #5953

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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