File tree 1 file changed +3
-3
lines changed
packages/plugin-nm/sources
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import {ZipOpenFS} from
9
9
import { buildNodeModulesTree } from '@yarnpkg/nm' ;
10
10
import { NodeModulesLocatorMap , buildLocatorMap , NodeModulesHoistingLimits } from '@yarnpkg/nm' ;
11
11
import { parseSyml } from '@yarnpkg/parsers' ;
12
- import { jsInstallUtils } from '@yarnpkg/plugin-pnp' ;
12
+ import { NodeLinker , jsInstallUtils } from '@yarnpkg/plugin-pnp' ;
13
13
import { PnpApi , PackageInformation } from '@yarnpkg/pnp' ;
14
14
import cmdShim from '@zkochan/cmd-shim' ;
15
15
import { UsageError } from 'clipanion' ;
@@ -108,7 +108,7 @@ export class NodeModulesLinker implements Linker {
108
108
}
109
109
110
110
private isEnabled ( opts : MinimalLinkOptions ) {
111
- return opts . project . configuration . get ( `nodeLinker` ) === `node-modules` ;
111
+ return opts . project . configuration . get ( `nodeLinker` ) === NodeLinker . NODE_MODULES ;
112
112
}
113
113
}
114
114
@@ -218,7 +218,7 @@ class NodeModulesInstaller implements Installer {
218
218
}
219
219
220
220
async finalizeInstall ( ) {
221
- if ( this . opts . project . configuration . get ( `nodeLinker` ) !== `node-modules` )
221
+ if ( this . opts . project . configuration . get ( `nodeLinker` ) !== NodeLinker . NODE_MODULES )
222
222
return undefined ;
223
223
224
224
const defaultFsLayer = new VirtualFS ( {
You can’t perform that action at this time.
0 commit comments