File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 28
28
- run : git submodule update --init && ./scripts/buildocaml.js
29
29
- run : ./scripts/ninja.js config && ./scripts/ninja.js build
30
30
- run : mkdir playground && mkdir playground/stdlib
31
- - run : BS_PLAYGROUND=../playground ./scripts/repl.js
31
+ - run : BS_PLAYGROUND=../playground ./scripts/repl.js -prepublish
32
32
- name : Archive npm artifacts
33
33
uses : actions/upload-artifact@v1
34
34
with :
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
3
var p = require ( "child_process" ) ;
4
-
4
+ var fs = require ( "fs" ) ;
5
5
var path = require ( "path" ) ;
6
6
7
7
@@ -36,7 +36,7 @@ function prepare() {
36
36
` ) ;
37
37
38
38
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`
40
40
) ;
41
41
42
42
e ( `cp ../lib/js/*.js ${ playground } /stdlib` ) ;
@@ -71,6 +71,7 @@ function prepublish() {
71
71
) ;
72
72
}
73
73
74
-
75
74
prepare ( ) ;
76
-
75
+ if ( process . argv . includes ( "-prepublish" ) ) {
76
+ prepublish ( ) ;
77
+ }
You can’t perform that action at this time.
0 commit comments