File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable no-console */
2
- const { chmodSync , realpathSync } = require ( 'fs' )
2
+ const { realpathSync } = require ( 'fs' )
3
3
const path = require ( 'path' )
4
4
5
5
const which = require ( 'which' )
@@ -23,12 +23,14 @@ function installLinks (realDirname, binname) {
23
23
}
24
24
return ! isShadow
25
25
} )
26
+ if ( npmpath && process . platform === 'win32' ) {
27
+ return npmpath
28
+ }
26
29
if ( ! npmpath ) {
27
30
console . error ( 'Socket unable to locate npm ensure it is available in the PATH environment variable' )
28
31
process . exit ( 127 )
29
32
}
30
33
if ( shadowIndex === - 1 ) {
31
- chmodSync ( realNpmShadowBinDir , parseInt ( '755' , 8 ) )
32
34
const bindir = path . join ( realDirname )
33
35
process . env [ 'PATH' ] = `${
34
36
bindir
Original file line number Diff line number Diff line change 31
31
" lib/shadow/**"
32
32
],
33
33
"scripts" : {
34
- "echo" : " echo $PATH" ,
35
34
"check:dependency-check" : " dependency-check '*.js' 'lib/shadow/*.cjs' '*.mjs' 'test/**/*.js' --no-dev" ,
36
35
"check:installed-check" : " installed-check -i eslint-plugin-jsdoc" ,
37
36
"check:lint" : " eslint --report-unused-disable-directives ." ,
You can’t perform that action at this time.
0 commit comments