Skip to content

Commit

Permalink
fix(windows): kit.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlindquist committed Oct 13, 2024
1 parent f60951b commit 53096ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build/preinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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...`);
Expand Down

0 comments on commit 53096ec

Please sign in to comment.