File tree Expand file tree Collapse file tree 2 files changed +39
-4
lines changed
packages/yarnpkg-core/sources Expand file tree Collapse file tree 2 files changed +39
-4
lines changed Original file line number Diff line number Diff line change
1
+ releases :
2
+ " @yarnpkg/core " : patch
3
+
4
+ declined :
5
+ - " @yarnpkg/plugin-compat"
6
+ - " @yarnpkg/plugin-constraints"
7
+ - " @yarnpkg/plugin-dlx"
8
+ - " @yarnpkg/plugin-essentials"
9
+ - " @yarnpkg/plugin-exec"
10
+ - " @yarnpkg/plugin-file"
11
+ - " @yarnpkg/plugin-git"
12
+ - " @yarnpkg/plugin-github"
13
+ - " @yarnpkg/plugin-http"
14
+ - " @yarnpkg/plugin-init"
15
+ - " @yarnpkg/plugin-interactive-tools"
16
+ - " @yarnpkg/plugin-link"
17
+ - " @yarnpkg/plugin-nm"
18
+ - " @yarnpkg/plugin-npm"
19
+ - " @yarnpkg/plugin-npm-cli"
20
+ - " @yarnpkg/plugin-pack"
21
+ - " @yarnpkg/plugin-patch"
22
+ - " @yarnpkg/plugin-pnp"
23
+ - " @yarnpkg/plugin-pnpm"
24
+ - " @yarnpkg/plugin-stage"
25
+ - " @yarnpkg/plugin-typescript"
26
+ - " @yarnpkg/plugin-version"
27
+ - " @yarnpkg/plugin-workspace-tools"
28
+ - " @yarnpkg/builder"
29
+ - " @yarnpkg/cli"
30
+ - " @yarnpkg/doctor"
31
+ - " @yarnpkg/extensions"
32
+ - " @yarnpkg/nm"
33
+ - " @yarnpkg/pnpify"
34
+ - " @yarnpkg/sdks"
Original file line number Diff line number Diff line change @@ -53,15 +53,16 @@ export class LegacyMigrationResolver implements Resolver {
53
53
const resolutions = this . resolutions = new Map ( ) ;
54
54
55
55
for ( const key of Object . keys ( parsed ) ) {
56
- let descriptor = structUtils . tryParseDescriptor ( key ) ;
56
+ const parsedDescriptor = structUtils . tryParseDescriptor ( key ) ;
57
57
58
- if ( ! descriptor ) {
58
+ if ( ! parsedDescriptor ) {
59
59
report . reportWarning ( MessageName . YARN_IMPORT_FAILED , `Failed to parse the string "${ key } " into a proper descriptor` ) ;
60
60
continue ;
61
61
}
62
62
63
- if ( semverUtils . validRange ( descriptor . range ) )
64
- descriptor = structUtils . makeDescriptor ( descriptor , `npm:${ descriptor . range } ` ) ;
63
+ const descriptor = semverUtils . validRange ( parsedDescriptor . range )
64
+ ? structUtils . makeDescriptor ( parsedDescriptor , `npm:${ parsedDescriptor . range } ` )
65
+ : parsedDescriptor ;
65
66
66
67
const { version, resolved} = ( parsed as any ) [ key ] ;
67
68
You can’t perform that action at this time.
0 commit comments