File tree Expand file tree Collapse file tree 25 files changed +691
-6
lines changed
Expand file tree Collapse file tree 25 files changed +691
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,4 @@ prebuilds/
77lib /
88libexec /
99share /
10- * -nodeos-linux-musl /
11-
12- bin /
10+ * -nodeos-linux-musl *
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
3+ // Simply move to the next command available on the `$PATH`. This is needed
4+ // during `npm` install process
5+
6+
7+ const path = require ( 'path' )
8+ const spawn = require ( 'child_process' ) . spawn
9+
10+
11+ var command = process . argv [ 1 ]
12+ var argv = process . argv . slice ( 2 )
13+
14+ // Remove us from the `$PATH` and try to find the system one again
15+ var PATH = process . env . PATH . split ( ':' )
16+ var index = PATH . indexOf ( path . dirname ( command ) )
17+ if ( index >= 0 )
18+ process . env . PATH = PATH . slice ( index + 1 ) . join ( ':' )
19+
20+
21+ spawn ( path . basename ( command ) , argv , { stdio : 'inherit' } )
22+ . on ( 'exit' , function ( code , signal )
23+ {
24+ process . exit ( code || signal )
25+ } )
26+ . on ( 'error' , function ( error )
27+ {
28+ if ( error . code === 'ENOENT' ) return process . exit ( 127 )
29+
30+ throw error
31+ } )
You can’t perform that action at this time.
0 commit comments