Skip to content

Commit 96e1637

Browse files
authoredOct 18, 2023
deps: cmd-shim@6.0.2 (#6915)
1 parent 5142735 commit 96e1637

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed
 

‎node_modules/cmd-shim/lib/index.js

+10-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ const writeShim_ = (from, to, prog, args, variables) => {
122122
// basedir=`dirname "$0"`
123123
//
124124
// case `uname` in
125-
// *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
125+
// *CYGWIN*|*MINGW*|*MSYS*)
126+
// if command -v cygpath > /dev/null 2>&1; then
127+
// basedir=`cygpath -w "$basedir"`
128+
// fi
129+
// ;;
126130
// esac
127131
//
128132
// if [ -x "$basedir/node.exe" ]; then
@@ -137,7 +141,11 @@ const writeShim_ = (from, to, prog, args, variables) => {
137141
+ `basedir=$(dirname "$(echo "$0" | sed -e 's,\\\\,/,g')")\n`
138142
+ '\n'
139143
+ 'case `uname` in\n'
140-
+ ' *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;\n'
144+
+ ' *CYGWIN*|*MINGW*|*MSYS*)\n'
145+
+ ' if command -v cygpath > /dev/null 2>&1; then\n'
146+
+ ' basedir=`cygpath -w "$basedir"`\n'
147+
+ ' fi\n'
148+
+ ' ;;\n'
141149
+ 'esac\n'
142150
+ '\n'
143151

‎node_modules/cmd-shim/package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cmd-shim",
3-
"version": "6.0.1",
3+
"version": "6.0.2",
44
"description": "Used in npm for command line application support",
55
"scripts": {
66
"test": "tap",
@@ -18,7 +18,7 @@
1818
"license": "ISC",
1919
"devDependencies": {
2020
"@npmcli/eslint-config": "^4.0.0",
21-
"@npmcli/template-oss": "4.11.0",
21+
"@npmcli/template-oss": "4.19.0",
2222
"tap": "^16.0.1"
2323
},
2424
"files": [
@@ -41,6 +41,7 @@
4141
"author": "GitHub Inc.",
4242
"templateOSS": {
4343
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
44-
"version": "4.11.0"
44+
"version": "4.19.0",
45+
"publish": true
4546
}
4647
}

‎package-lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4560,9 +4560,9 @@
45604560
}
45614561
},
45624562
"node_modules/cmd-shim": {
4563-
"version": "6.0.1",
4564-
"resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-6.0.1.tgz",
4565-
"integrity": "sha512-S9iI9y0nKR4hwEQsVWpyxld/6kRfGepGfzff83FcaiEBpmvlbA2nnGe7Cylgrx2f/p1P5S5wpRm9oL8z1PbS3Q==",
4563+
"version": "6.0.2",
4564+
"resolved": "https://registry.npmjs.org/cmd-shim/-/cmd-shim-6.0.2.tgz",
4565+
"integrity": "sha512-+FFYbB0YLaAkhkcrjkyNLYDiOsFSfRjwjY19LXk/psmMx1z00xlCv7hhQoTGXXIKi+YXHL/iiFo8NqMVQX9nOw==",
45664566
"engines": {
45674567
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
45684568
}

0 commit comments

Comments
 (0)
Please sign in to comment.