Skip to content

0.5.3 #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/shadow/link.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
const { chmodSync, realpathSync } = require('fs')
const { realpathSync } = require('fs')
const path = require('path')

const which = require('which')
Expand All @@ -23,12 +23,14 @@ function installLinks (realDirname, binname) {
}
return !isShadow
})
if (npmpath && process.platform === 'win32') {
return npmpath
}
if (!npmpath) {
console.error('Socket unable to locate npm ensure it is available in the PATH environment variable')
process.exit(127)
}
if (shadowIndex === -1) {
chmodSync(realNpmShadowBinDir, parseInt('755', 8))
const bindir = path.join(realDirname)
process.env['PATH'] = `${
bindir
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socketsecurity/cli",
"version": "0.5.2",
"version": "0.5.3",
"description": "CLI tool for Socket.dev",
"homepage": "http://github.com/SocketDev/socket-cli-js",
"repository": {
Expand Down Expand Up @@ -31,7 +31,6 @@
"lib/shadow/**"
],
"scripts": {
"echo": "echo $PATH",
"check:dependency-check": "dependency-check '*.js' 'lib/shadow/*.cjs' '*.mjs' 'test/**/*.js' --no-dev",
"check:installed-check": "installed-check -i eslint-plugin-jsdoc",
"check:lint": "eslint --report-unused-disable-directives .",
Expand Down