Skip to content

Commit 8dad5af

Browse files
authored
Removes vcc from the binaries (#43)
1 parent 75054fa commit 8dad5af

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mkshims.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ import path from 'path';
55
import {Engine} from './sources/Engine';
66
import {SupportedPackageManagerSet} from './sources/types';
77

8+
const EXCLUDE_SHIMS = new Set([
9+
`vcc.js`,
10+
]);
11+
812
const engine = new Engine();
913

1014
const distDir = path.join(__dirname, `dist`);
@@ -33,8 +37,12 @@ async function main() {
3337
}
3438
}
3539

36-
for (const binaryName of fs.readdirSync(distDir))
40+
for (const binaryName of fs.readdirSync(distDir)) {
41+
if (EXCLUDE_SHIMS.has(binaryName))
42+
continue;
43+
3744
await cmdShim(path.join(distDir, binaryName), path.join(shimsDir, path.basename(binaryName, `.js`)), {createCmdFile: true});
45+
}
3846

3947
// The Node distribution doesn't support symlinks, so they copy the shims into
4048
// the target folder. Since our shims have relative paths, it doesn't work

0 commit comments

Comments
 (0)