|
1 |
| -import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli'; |
2 |
| -import {Configuration, Cache, MessageName, Project, ReportError, StreamReport, formatUtils, InstallMode, execUtils, structUtils, LEGACY_PLUGINS, ConfigurationValueMap} from '@yarnpkg/core'; |
3 |
| -import {xfs, ppath, Filename, PortablePath} from '@yarnpkg/fslib'; |
4 |
| -import {parseSyml, stringifySyml} from '@yarnpkg/parsers'; |
5 |
| -import CI from 'ci-info'; |
6 |
| -import {Command, Option, Usage, UsageError} from 'clipanion'; |
7 |
| -import semver from 'semver'; |
8 |
| -import * as t from 'typanion'; |
| 1 | +import {BaseCommand, WorkspaceRequiredError} from '@yarnpkg/cli'; |
| 2 | +import {Configuration, Cache, MessageName, Project, ReportError, StreamReport, formatUtils, InstallMode, execUtils, structUtils, LEGACY_PLUGINS, ConfigurationValueMap, YarnVersion} from '@yarnpkg/core'; |
| 3 | +import {xfs, ppath, Filename, PortablePath} from '@yarnpkg/fslib'; |
| 4 | +import {parseSyml, stringifySyml} from '@yarnpkg/parsers'; |
| 5 | +import CI from 'ci-info'; |
| 6 | +import {Command, Option, Usage, UsageError} from 'clipanion'; |
| 7 | +import semver from 'semver'; |
| 8 | +import * as t from 'typanion'; |
9 | 9 |
|
10 | 10 | const LOCKFILE_MIGRATION_RULES: Array<{
|
11 | 11 | selector: (version: number) => boolean;
|
@@ -304,7 +304,6 @@ export default class YarnCommand extends BaseCommand {
|
304 | 304 |
|
305 | 305 | if (data !== null) {
|
306 | 306 | let newVersion: [string, string] | null = null;
|
307 |
| - const YarnVersion = `3.0.0`; |
308 | 307 | if (YarnVersion !== null) {
|
309 | 308 | const isRcBinary = semver.prerelease(YarnVersion);
|
310 | 309 | const releaseType = isRcBinary ? `canary` : `stable`;
|
|
0 commit comments