We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 008864d commit 56655d8Copy full SHA for 56655d8
build/ensure/npm/npm.ts
@@ -8,11 +8,13 @@ namespace $ {
8
const parent = mod.parent()
9
const node = this.root().resolve( 'node' )
10
const node_modules = this.root().resolve( 'node_modules' )
11
+ const name = mod.name()
12
+
13
if(
14
[ node, node_modules ].includes( parent )
- && ! mod.name().match(/^(@|node:)/)
15
+ && ! name.match(/^(@|node:)/)
16
) {
- $node [ mod.name() ] // force autoinstall through npm
17
+ $node [ name ] // force autoinstall through npm
18
return true
19
}
20
0 commit comments