Skip to content

Commit be869dc

Browse files
committed
Create npm dir if it doesn't exist
1 parent 8e604ee commit be869dc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/build-npm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ const sysToNodePlatform = {
2727

2828
let optionalDependencies = {};
2929

30+
try {
31+
fs.mkdirSync(dir + '/npm');
32+
} catch (err) {}
33+
3034
for (let triple of triples) {
3135
let [cpu, , os, abi] = triple.split('-');
3236
cpu = cpuToNodeArch[cpu] || cpu;

0 commit comments

Comments
 (0)