Skip to content

Commit 6767b3a

Browse files
authored
Merge pull request #30 from SocketDev/0.5.3
0.5.3
2 parents 1831fe7 + 71f6162 commit 6767b3a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/shadow/link.cjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable no-console */
2-
const { chmodSync, realpathSync } = require('fs')
2+
const { realpathSync } = require('fs')
33
const path = require('path')
44

55
const 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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -31,7 +31,6 @@
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 .",

0 commit comments

Comments
 (0)