Skip to content

Commit 92e3d04

Browse files
author
jin
committed
++
1 parent 5085eeb commit 92e3d04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/ensure/ensure.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ namespace $ {
5353
const mod = $mol_file.absolute( path )
5454
const parent = mod.parent()
5555

56+
if( mod.name().startsWith( 'node:' ) ) return true
57+
5658
if( mod !== this.root() ) this.ensure( parent.path() )
5759

5860
if (mod.exists() && mod.type() !== 'dir') return false

build/ensure/npm/npm.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ namespace $ {
99
const node = this.root().resolve( 'node' )
1010
const node_modules = this.root().resolve( 'node_modules' )
1111

12-
if( mod.name().startsWith( 'node:' ) ) return true
13-
1412
if(
1513
[ node, node_modules ].includes( parent )
1614
&& mod.name() !== 'node'

0 commit comments

Comments
 (0)