Skip to content

Commit 72c7852

Browse files
committed
Remove last remaining rescript-legacy usage
1 parent b1363f0 commit 72c7852

File tree

19 files changed

+37
-32
lines changed

19 files changed

+37
-32
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ jobs:
593593
working-directory: ${{ steps.tmp-dir.outputs.path }}
594594

595595
- name: Test installation
596-
run: npx rescript -h && npx rescript-legacy build && cat src/Test.res.js
596+
run: npx rescript -h && npx rescript build && cat src/Test.res.js
597597
shell: bash
598598
working-directory: ${{ steps.tmp-dir.outputs.path }}
599599

@@ -646,7 +646,7 @@ jobs:
646646
working-directory: ${{ steps.tmp-dir.outputs.path }}
647647

648648
- name: Test installation
649-
run: pnpm rescript -h && pnpm rescript-legacy build && cat src/Test.res.js
649+
run: pnpm rescript -h && pnpm rescript build && cat src/Test.res.js
650650
shell: bash
651651
working-directory: ${{ steps.tmp-dir.outputs.path }}
652652

packages/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"clean": "rescript clean",
77
"test": "node ./playground_test.cjs",
8-
"build": "rescript clean && rescript-legacy build && node scripts/generate_cmijs.mjs && rollup -c && touch .buildstamp",
8+
"build": "rescript clean && rescript build && node scripts/generate_cmijs.mjs && rollup -c && touch .buildstamp",
99
"upload-bundle": "node scripts/upload_bundle.mjs",
1010
"serve-bundle": "node serve-bundle.mjs"
1111
},

packages/playground/scripts/generate_cmijs.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from "./common.mjs";
2525

2626
exec("yarn rescript clean");
27-
exec("yarn rescript-legacy build");
27+
exec("yarn rescript build");
2828

2929
// We need to build the compiler's builtin modules as a separate cmij.
3030
// Otherwise we can't use them for compilation within the playground.

scripts/res/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"type": "module",
44
"private": true,
55
"scripts": {
6-
"build": "rescript-legacy build",
6+
"build": "rescript build",
77
"clean": "rescript clean",
8-
"dev": "rescript-legacy -w",
8+
"dev": "rescript watch",
99
"apidocs:generate": "yarn build && node GenApiDocs.res.js"
1010
},
1111
"dependencies": {

tests/analysis_tests/tests-generic-jsx-transform/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@tests/generic-jsx-transform",
33
"private": true,
44
"scripts": {
5-
"build": "rescript-legacy build",
6-
"clean": "rescript-legacy clean"
5+
"build": "rescript build",
6+
"clean": "rescript clean"
77
},
88
"dependencies": {
99
"rescript": "workspace:^"
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
2-
"name": "test-generic-jsx-transform",
2+
"name": "@tests/generic-jsx-transform",
33
"sources": [
44
{
55
"dir": "src",
66
"subdirs": true
77
}
88
],
9-
"compiler-flags": ["-w -33-44-8"],
9+
"compiler-flags": ["-w -33-44-8-26-27-110"],
10+
"package-specs": [{ "module": "commonjs", "in-source": false }],
1011
"jsx": { "module": "GenericJsx" }
1112
}

tests/analysis_tests/tests-incremental-typechecking/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SHELL = /bin/bash
22

33
build:
4-
yarn build > /dev/null || true
4+
yarn build > /dev/null 2>&1 || true
55

66
test: build
77
./test.sh

tests/analysis_tests/tests-incremental-typechecking/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@tests/incremental-typechecking",
33
"private": true,
44
"scripts": {
5-
"build": "rescript-legacy build",
6-
"clean": "rescript-legacy clean"
5+
"build": "rescript build",
6+
"clean": "rescript clean"
77
},
88
"dependencies": {
99
"rescript": "workspace:^"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"name": "test-generic-jsx-transform",
2+
"name": "@tests/incremental-typechecking",
33
"sources": [
44
{
55
"dir": "src",
66
"subdirs": true
77
}
88
],
9-
"compiler-flags": ["-w -33-44-8"],
9+
"compiler-flags": ["-w -33-44-8-26-27-110"],
1010
"jsx": { "module": "GenericJsx" }
1111
}

tests/analysis_tests/tests-reanalyze/termination/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "@tests/reanalyze-termination",
33
"private": true,
44
"scripts": {
5-
"build": "rescript-legacy build",
6-
"clean": "rescript-legacy clean"
5+
"build": "rescript build",
6+
"clean": "rescript clean"
77
},
88
"dependencies": {
99
"rescript": "workspace:^"

0 commit comments

Comments
 (0)