Skip to content

Commit 56655d8

Browse files
committed
Fix name
1 parent 008864d commit 56655d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build/ensure/npm/npm.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ namespace $ {
88
const parent = mod.parent()
99
const node = this.root().resolve( 'node' )
1010
const node_modules = this.root().resolve( 'node_modules' )
11+
const name = mod.name()
12+
1113
if(
1214
[ node, node_modules ].includes( parent )
13-
&& ! mod.name().match(/^(@|node:)/)
15+
&& ! name.match(/^(@|node:)/)
1416
) {
15-
$node [ mod.name() ] // force autoinstall through npm
17+
$node [ name ] // force autoinstall through npm
1618
return true
1719
}
1820

0 commit comments

Comments
 (0)