File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
2- const { chmodSync , realpathSync } = require ( 'fs' )
2+ const { realpathSync } = require ( 'fs' )
33const path = require ( 'path' )
44
55const which = require ( 'which' )
@@ -23,12 +23,14 @@ function installLinks (realDirname, binname) {
2323 }
2424 return ! isShadow
2525 } )
26+ if ( npmpath && process . platform === 'win32' ) {
27+ return npmpath
28+ }
2629 if ( ! npmpath ) {
2730 console . error ( 'Socket unable to locate npm ensure it is available in the PATH environment variable' )
2831 process . exit ( 127 )
2932 }
3033 if ( shadowIndex === - 1 ) {
31- chmodSync ( realNpmShadowBinDir , parseInt ( '755' , 8 ) )
3234 const bindir = path . join ( realDirname )
3335 process . env [ 'PATH' ] = `${
3436 bindir
Original file line number Diff line number Diff line change 11{
22 "name" : " @socketsecurity/cli" ,
3- "version" : " 0.5.2 " ,
3+ "version" : " 0.5.3 " ,
44 "description" : " CLI tool for Socket.dev" ,
55 "homepage" : " http://github.com/SocketDev/socket-cli-js" ,
66 "repository" : {
3131 " lib/shadow/**"
3232 ],
3333 "scripts" : {
34- "echo" : " echo $PATH" ,
3534 "check:dependency-check" : " dependency-check '*.js' 'lib/shadow/*.cjs' '*.mjs' 'test/**/*.js' --no-dev" ,
3635 "check:installed-check" : " installed-check -i eslint-plugin-jsdoc" ,
3736 "check:lint" : " eslint --report-unused-disable-directives ." ,
You can’t perform that action at this time.
0 commit comments