Skip to content

Commit 0a9977d

Browse files
committed
finish prepublish
1 parent dba76b3 commit 0a9977d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/playground.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- run: git submodule update --init && ./scripts/buildocaml.js
2929
- run: ./scripts/ninja.js config && ./scripts/ninja.js build
3030
- run: mkdir playground && mkdir playground/stdlib
31-
- run: BS_PLAYGROUND=../playground ./scripts/repl.js
31+
- run: BS_PLAYGROUND=../playground ./scripts/repl.js -prepublish
3232
- name: Archive npm artifacts
3333
uses: actions/upload-artifact@v1
3434
with:

scripts/repl.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
var p = require("child_process");
4-
4+
var fs = require("fs");
55
var path = require("path");
66

77

@@ -36,7 +36,7 @@ function prepare() {
3636
`);
3737

3838
e(
39-
`opam exec -- ocamlc.opt -w -30-40 -no-check-prims -I ${jsRefmtCompDir} ${jsRefmtCompDir}/js_compiler.mli ${jsRefmtCompDir}/js_compiler.ml -o jsc.byte && opam exec -- js_of_ocaml jsc.byte -o exports.js`
39+
`opam exec -- ocamlc.opt -w -30-40 -no-check-prims -I ${jsRefmtCompDir} ${jsRefmtCompDir}/js_refmt_compiler.mli ${jsRefmtCompDir}/js_refmt_compiler.ml -o jsc.byte && opam exec -- js_of_ocaml jsc.byte -o exports.js`
4040
);
4141

4242
e(`cp ../lib/js/*.js ${playground}/stdlib`);
@@ -71,6 +71,7 @@ function prepublish() {
7171
);
7272
}
7373

74-
7574
prepare();
76-
75+
if (process.argv.includes("-prepublish")) {
76+
prepublish();
77+
}

0 commit comments

Comments
 (0)