Skip to content

Commit 5475188

Browse files
committed
add some checks
1 parent b91835e commit 5475188

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

scripts/prepublish.js

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,16 @@ function stat(files) {
6666
* @param {Map<string, Set<string> >} map
6767
*/
6868
function check(map) {
69-
var compilers = ["bsb", "bsb_helper", "bsc", "ninja", "refmt"];
70-
let oses = ["darwin", "linux"];
71-
if (!process.argv.includes("-nowin")) {
72-
oses.push("win32");
73-
}
74-
for (let os of oses) {
75-
for (let c of compilers) {
76-
assert(map.get(os));
77-
assert(map.get(os).has(`${c}.exe`));
78-
}
69+
// we don't need check artifacts any more
70+
// since it's already snapshot
71+
72+
// make sure the remote and current are on the same commit
73+
var currentBranch = (p.execSync(`git branch --show-current`) + "").trim()
74+
var remoteDiffs = p.execSync(`git diff ${currentBranch} origin/${currentBranch}`) + ""
75+
if(remoteDiffs){
76+
console.warn(`diffs with remote`)
77+
console.log(remoteDiffs)
7978
}
80-
assert(map.get("lib/ocaml").size > 400);
81-
assert.equal(map.has("jscomp"), false);
82-
assert.equal(map.get("jscomp/stubs").size, 1);
83-
assert.equal(map.get("lib/js").size, map.get("lib/es6").size);
8479
}
8580

8681
var map = stat(packedFiles);

0 commit comments

Comments
 (0)