From 4a1979a5f698188790ade11ce2d2f520e608ff50 Mon Sep 17 00:00:00 2001 From: Andrew Bradley Date: Sun, 9 Aug 2020 16:56:01 -0400 Subject: [PATCH] switch to @zkochan/cmd-shim --- package.json | 2 +- src/util.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index be73c55..5c9c768 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@types/unzipper": "^0.8.4", "@types/webpack": "^4.4.9", "@types/which": "^1.3.1", - "cmd-shim": "^2.0.2", + "@zkochan/cmd-shim": "^5.0.0", "cross-spawn": "^6.0.5", "execa": "^4.0.3", "get-stream": "^3.0.0", diff --git a/src/util.ts b/src/util.ts index de75cc7..52ade29 100644 --- a/src/util.ts +++ b/src/util.ts @@ -9,7 +9,7 @@ import * as tar from 'tar'; import { Readable } from 'stream'; import { platform } from 'os'; import * as unzipper from 'unzipper'; -import * as cmdShim from 'cmd-shim'; +import * as cmdShim from '@zkochan/cmd-shim'; import { promisify } from 'util'; import { Extension } from './version-utils'; import * as stream from 'stream'; @@ -263,7 +263,7 @@ export async function createSymlinkTo(args: { // Windows platforms: use cmd-shim if(process.platform === 'win32') { log(`Creating .cmd shim from ${ linkPath } to ${ targetPath } (via ${ intermediateLinkPath })...`); - await promisify(cmdShim)(targetPath, intermediateLinkPath.replace(/\.cmd$/, '')); + await promisify(cmdShim)(targetPath, intermediateLinkPath.replace(/\.cmd$/, ''), {}); } // Non-windows platforms: use a symlink to a symlink // Intermediate symlink is necessary because npm refuses to delete .bin/ unless it points to *within* the module's directory