Skip to content

Commit e62251f

Browse files
committed
fix publish scripts
1 parent 598fa67 commit e62251f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/prepublish.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ var path = require("path");
55
var fs = require("fs");
66
var assert = require("assert");
77
var root = path.join(__dirname, "..");
8+
try {
9+
// npmignore is broken let's do it
10+
let file = path.join(root, process.platform, "bsc")
11+
console.log(`try removing ${file}`)
12+
fs.unlinkSync(file);
13+
} catch (e) {}
814

915
var output = p.spawnSync(`npm pack --dry-run`, {
1016
cwd: root,
@@ -13,12 +19,6 @@ var output = p.spawnSync(`npm pack --dry-run`, {
1319
// stdio: [0, 1, 2]
1420
});
1521

16-
try {
17-
// npmignore is broken let's do it
18-
let file = path.join(root, process.platform, "bsc")
19-
console.log(`try removing ${file}`)
20-
fs.unlinkSync(file);
21-
} catch (e) {}
2222

2323
/**
2424
*

0 commit comments

Comments
 (0)