Skip to content

Commit 5419606

Browse files
ExE-Bossarcanis
authored andcommitted
chore(pacakge): Update @zkochan/cmd-shim to version 3.1.0 (#6804)
1 parent c45fc99 commit 5419606

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

__tests__/commands/install/bin-links.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ afterEach(request.__resetAuthedRequests);
5151
test('install should hoist nested bin scripts', (): Promise<void> => {
5252
return runInstall({binLinks: true}, 'install-nested-bin', async config => {
5353
const binScripts = await fs.walk(path.join(config.cwd, 'node_modules', '.bin'));
54-
// need to double the amount as windows makes 2 entries for each dependency
55-
// so for below, there would be an entry for eslint and eslint.cmd on win32
56-
const amount = process.platform === 'win32' ? 20 : 10;
54+
// need to triple the amount as windows makes 3 entries for each dependency
55+
// so for below, there would be an entry for eslint, eslint.cmd and eslint.ps1 on win32
56+
const amount = process.platform === 'win32' ? 30 : 10;
5757
expect(binScripts).toHaveLength(amount);
5858

5959
expect(await linkAt(config, 'node_modules', '.bin', 'standard')).toEqual('../standard/bin/cmd.js');
@@ -178,7 +178,7 @@ test('can use link protocol to install a package that would not be found via nod
178178
test('empty bin string does not create a link', (): Promise<void> => {
179179
return runInstall({binLinks: true}, 'install-empty-bin', async config => {
180180
const binScripts = await fs.walk(path.join(config.cwd, 'node_modules', '.bin'));
181-
const linkCount = process.platform === 'win32' ? 2 : 1;
181+
const linkCount = process.platform === 'win32' ? 3 : 1;
182182
expect(binScripts).toHaveLength(linkCount);
183183

184184
expect(await linkAt(config, 'node_modules', '.bin', 'depB')).toEqual('../depB/depb.js');

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"preferGlobal": true,
77
"description": "📦🐈 Fast, reliable, and secure dependency management.",
88
"dependencies": {
9-
"@zkochan/cmd-shim": "^2.2.4",
9+
"@zkochan/cmd-shim": "^3.1.0",
1010
"babel-runtime": "^6.26.0",
1111
"bytes": "^3.0.0",
1212
"camelcase": "^4.0.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
normalize-path "^2.0.1"
3838
through2 "^2.0.3"
3939

40-
"@zkochan/cmd-shim@^2.2.4":
41-
version "2.2.4"
42-
resolved "https://registry.yarnpkg.com/@zkochan/cmd-shim/-/cmd-shim-2.2.4.tgz#5730a936491219d88487e92d12c6c3bdb16c3c6e"
43-
integrity sha512-BDy1oz6aFYyY73618IkXzJzFghnXwVZDc3SVa6MVKTrrk4RgubahAF5yKK+Mx4a78tfO0OHeZnJKPs0pNy5uNA==
40+
"@zkochan/cmd-shim@^3.1.0":
41+
version "3.1.0"
42+
resolved "https://registry.yarnpkg.com/@zkochan/cmd-shim/-/cmd-shim-3.1.0.tgz#2ab8ed81f5bb5452a85f25758eb9b8681982fd2e"
43+
integrity sha512-o8l0+x7C7sMZU3v9GuJIAU10qQLtwR1dtRQIOmlNMtyaqhmpXOzx1HWiYoWfmmf9HHZoAkXpc9TM9PQYF9d4Jg==
4444
dependencies:
4545
is-windows "^1.0.0"
4646
mkdirp-promise "^5.0.1"

0 commit comments

Comments
 (0)