From 53096ec1af9d4b49af6e8398763518c70c056cb1 Mon Sep 17 00:00:00 2001 From: John Lindquist Date: Sat, 12 Oct 2024 22:10:11 -0600 Subject: [PATCH] fix(windows): kit.bat --- build/preinstall.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/preinstall.js b/build/preinstall.js index 8ddb4e6a..c70d24f2 100644 --- a/build/preinstall.js +++ b/build/preinstall.js @@ -21,13 +21,13 @@ if (isCI) { console.log(`${binFilePathToRemove} does not exist. Skipping...`); } - let kitBat = 'kit.bat'; - let batFilePath = kitPath('bin', kitBat); + let kitBat = 'bin/kit.bat'; + let batFilePath = kitPath(kitBat.split('/')); let packageJsonPath = kitPath('package.json'); if (existsSync(batFilePath)) { // Update the package.json to use the new bin file name let packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8')); - packageJson.bin.kit = kitBat; + packageJson.bin.kit = 'bin/kit.bat'; writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2)); } else { console.log(`${batFilePath} does not exist. Skipping...`);