Skip to content

Commit 3317b11

Browse files
authored
Clean up runtime build scripts (#7479)
1 parent 0e718c5 commit 3317b11

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

scripts/buildRuntime.sh

+5-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
set -e
33
shopt -s extglob
44

5-
(cd runtime && ../cli/rescript.js clean)
5+
(cd runtime && ../cli/rescript.js clean && ../cli/rescript.js build)
66

77
rm -f lib/es6/*.js lib/js/*.js lib/ocaml/*
88
mkdir -p lib/es6 lib/js lib/ocaml
9-
mkdir -p runtime/lib/es6 runtime/lib/js
109

11-
(cd runtime && ../cli/rescript.js build)
12-
13-
cp runtime/lib/es6/!(Pervasives_mini).js lib/es6
14-
cp runtime/lib/js/!(Pervasives_mini).js lib/js
15-
cp runtime/lib/bs/!(Pervasives_mini|Belt_internal*).cmi lib/ocaml/
16-
cp runtime/lib/bs/!(Pervasives_mini).@(cmi|cmj|cmt|cmti) lib/ocaml/
17-
cp runtime/!(Pervasives_mini).@(res|resi) lib/ocaml/
10+
cp runtime/lib/es6/*.js lib/es6
11+
cp runtime/lib/js/*.js lib/js
12+
cp runtime/lib/bs/*.@(cmi|cmj|cmt|cmti) lib/ocaml/
13+
cp runtime/*.@(res|resi) lib/ocaml/

scripts/buildRuntimeRewatch.sh

+5-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22
set -e
33
shopt -s extglob
44

5-
(cd runtime && ../cli/rewatch.js clean)
5+
(cd runtime && ../cli/rewatch.js clean && ../cli/rewatch.js build)
66

77
rm -f lib/es6/*.js lib/js/*.js lib/ocaml/*
88
mkdir -p lib/es6 lib/js lib/ocaml
9-
mkdir -p runtime/lib/es6 runtime/lib/js
109

11-
(cd runtime && ../cli/rewatch.js build)
12-
13-
cp runtime/lib/es6/!(Pervasives_mini).js lib/es6
14-
cp runtime/lib/js/!(Pervasives_mini).js lib/js
15-
cp runtime/lib/bs/!(Pervasives_mini|Belt_internal*).cmi lib/ocaml/
16-
cp runtime/lib/bs/!(Pervasives_mini).@(cmi|cmj|cmt|cmti) lib/ocaml/
17-
cp runtime/!(Pervasives_mini).@(res|resi) lib/ocaml/
10+
cp runtime/lib/es6/*.js lib/es6
11+
cp runtime/lib/js/*.js lib/js
12+
cp runtime/lib/bs/*.@(cmi|cmj|cmt|cmti) lib/ocaml/
13+
cp runtime/*.@(res|resi) lib/ocaml/

0 commit comments

Comments
 (0)