Skip to content

Commit 4adf7a7

Browse files
committed
Rename runtime build scripts
1 parent f048f5a commit 4adf7a7

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,12 @@ jobs:
332332

333333
- name: Build runtime/stdlib with rewatch
334334
if: ${{ runner.os != 'Windows' }}
335-
run: ./scripts/buildRuntimeRewatch.sh
335+
run: ./scripts/buildRuntime.sh
336336
shell: bash
337337

338338
- name: Build runtime/stdlib with bsb (Windows)
339339
if: ${{ runner.os == 'Windows' }}
340-
run: ./scripts/buildRuntime.sh
340+
run: ./scripts/buildRuntimeLegacy.sh
341341
shell: bash
342342

343343
- name: Check for changes in lib folder
@@ -510,7 +510,7 @@ jobs:
510510
- name: Build website
511511
if: steps.diffcheck.outputs.clean == 'false'
512512
run: |
513-
npm ci
513+
npm ci
514514
npm run build
515515
516516
- name: Commit and push

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ reanalyze:
5252
reanalyze.exe -set-exit-code -all-cmt _build/default/compiler _build/default/tests -exclude-paths compiler/outcome_printer,compiler/ml,compiler/frontend,compiler/ext,compiler/depends,compiler/core,compiler/common,compiler/cmij,compiler/bsb_helper,compiler/bsb
5353

5454
lib-bsb:
55-
./scripts/buildRuntime.sh
55+
./scripts/buildRuntimeLegacy.sh
5656

5757
lib:
58-
./scripts/buildRuntimeRewatch.sh
58+
./scripts/buildRuntime.sh
5959

6060
artifacts: lib
6161
./scripts/npmPack.js --updateArtifactList

scripts/buildRuntime.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
shopt -s extglob
44

5-
(cd runtime && ../cli/rescript-legacy.js clean && ../cli/rescript-legacy.js build)
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
@@ -11,3 +11,6 @@ cp runtime/lib/es6/*.js lib/es6
1111
cp runtime/lib/js/*.js lib/js
1212
cp runtime/lib/bs/*.@(cmi|cmj|cmt|cmti) lib/ocaml/
1313
cp runtime/*.@(res|resi) lib/ocaml/
14+
# overwrite the stdlib build artifacts to the testrepo
15+
mkdir -p rewatch/testrepo/node_modules/rescript/lib/ocaml
16+
cp -rf lib/ocaml rewatch/testrepo/node_modules/rescript/lib/ocaml

scripts/buildRuntimeRewatch.sh renamed to scripts/buildRuntimeLegacy.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33
shopt -s extglob
44

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

77
rm -f lib/es6/*.js lib/js/*.js lib/ocaml/*
88
mkdir -p lib/es6 lib/js lib/ocaml
@@ -11,6 +11,3 @@ cp runtime/lib/es6/*.js lib/es6
1111
cp runtime/lib/js/*.js lib/js
1212
cp runtime/lib/bs/*.@(cmi|cmj|cmt|cmti) lib/ocaml/
1313
cp runtime/*.@(res|resi) lib/ocaml/
14-
# overwrite the stdlib build artifacts to the testrepo
15-
mkdir -p rewatch/testrepo/node_modules/rescript/lib/ocaml
16-
cp -rf lib/ocaml rewatch/testrepo/node_modules/rescript/lib/ocaml

0 commit comments

Comments
 (0)