File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/playground-bundling/scripts Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ function e(cmd) {
48
48
49
49
e ( `npm install` ) ;
50
50
e ( `npm link ${ RESCRIPT_COMPILER_ROOT_DIR } ` ) ;
51
+ e ( `npx rescript` )
51
52
52
53
const packages = bsconfig [ "bs-dependencies" ] ;
53
54
@@ -89,14 +90,10 @@ function buildThirdPartyCmijs() {
89
90
90
91
const cmijFile = path . join ( outputFolder , `cmij.js` ) ;
91
92
92
- if ( ! fs . existsSync ( PLAYGROUND_DIR ) ) {
93
- console . error ( `PLAYGROUND_DIR "${ PLAYGROUND_DIR } " does not exist` ) ;
94
- process . exit ( 1 ) ;
95
- }
96
-
97
93
if ( ! fs . existsSync ( outputFolder ) ) {
98
94
fs . mkdirSync ( outputFolder , { recursive : true } ) ;
99
95
}
96
+
100
97
e ( `find ${ libEs6Folder } -name '*.js' -exec cp {} ${ outputFolder } \\;` ) ;
101
98
e (
102
99
`find ${ libOcamlFolder } -name "*.cmi" -or -name "*.cmj" | xargs -n1 basename | xargs js_of_ocaml build-fs -o ${ cmijFile } -I ${ libOcamlFolder } `
You can’t perform that action at this time.
0 commit comments