Skip to content

Commit 79e60ba

Browse files
authored
Merge pull request #108 from rescript-lang/rewatch
Use latest rewatch
2 parents d32b8e6 + 46740dc commit 79e60ba

File tree

8 files changed

+5
-13
lines changed

8 files changed

+5
-13
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ jobs:
3030
- name: Install dependencies
3131
run: npm ci
3232

33-
# There is a bug in the ReScript compiler where it tries to compile the test files before finishing the source files
34-
- name: Build ReScript code
35-
run: npm run build
36-
continue-on-error: true
37-
3833
- name: Rebuild ReScript code
3934
run: npm run build
4035

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
"type": "module",
2929
"scripts": {
3030
"test": "node tests/index.js",
31-
"build": "rescript",
31+
"build": "rewatch --dev",
3232
"format": "rescript format -all && prettier --write ./tests/index.js ./package.json ./docs/pages",
3333
"docs": "astro dev",
3434
"prebuild:docs": "node docs/llm.js",
3535
"build:docs": "astro build"
3636
},
3737
"license": "MIT",
3838
"dependencies": {
39-
"rescript": "^12.0.0-alpha.9"
39+
"rescript": "^12.0.0-alpha.13"
4040
},
4141
"devDependencies": {
4242
"@astrojs/starlight": "0.34.3",

src/CanvasAPI/FillStyle.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
open Prelude
22
open CanvasAPI
3-
open DOMAPI
43

54
external fromString: string => fillStyle = "%identity"
65
external fromCanvasGradient: canvasGradient => fillStyle = "%identity"

src/FetchAPI/Headers.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open FetchAPI
2-
open Prelude
32

43
/**
54
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers)

src/FetchAPI/URLSearchParams.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
open FetchAPI
2-
open Prelude
32

43
/**
54
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams)

tests/WebStorageAPI/Storage__test.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
open WebAPI.Global
1+
open Global
22
open WebAPI.Storage
33

44
for i in 0 to localStorage.length - 1 {

tests/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const repoRoot = path.resolve(currentDir, "..");
99
const testsDir = path.join(repoRoot, "tests");
1010

1111
// Compile all tests
12-
execSync("npx rescript", { cwd: repoRoot, stdio: "inherit" });
12+
execSync("npm run build", { cwd: repoRoot, stdio: "inherit" });
1313

1414
const successGreen = "\x1b[32m";
1515
const warningYellow = "\x1b[33m";

0 commit comments

Comments
 (0)