diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d9a23e2..fe2fc64f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,11 +30,6 @@ jobs: - name: Install dependencies run: npm ci - # There is a bug in the ReScript compiler where it tries to compile the test files before finishing the source files - - name: Build ReScript code - run: npm run build - continue-on-error: true - - name: Rebuild ReScript code run: npm run build diff --git a/package-lock.json b/package-lock.json index ff14e4bc..759d4fb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "license": "MIT", "dependencies": { - "rescript": "^12.0.0-alpha.9" + "rescript": "^12.0.0-alpha.13" }, "devDependencies": { "@astrojs/starlight": "0.34.3", diff --git a/package.json b/package.json index 9bf952ba..c23b825b 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "type": "module", "scripts": { "test": "node tests/index.js", - "build": "rescript", + "build": "rewatch --dev", "format": "rescript format -all && prettier --write ./tests/index.js ./package.json ./docs/pages", "docs": "astro dev", "prebuild:docs": "node docs/llm.js", @@ -36,7 +36,7 @@ }, "license": "MIT", "dependencies": { - "rescript": "^12.0.0-alpha.9" + "rescript": "^12.0.0-alpha.13" }, "devDependencies": { "@astrojs/starlight": "0.34.3", diff --git a/src/CanvasAPI/FillStyle.res b/src/CanvasAPI/FillStyle.res index fdf4be2e..cd71c4d7 100644 --- a/src/CanvasAPI/FillStyle.res +++ b/src/CanvasAPI/FillStyle.res @@ -1,6 +1,5 @@ open Prelude open CanvasAPI -open DOMAPI external fromString: string => fillStyle = "%identity" external fromCanvasGradient: canvasGradient => fillStyle = "%identity" diff --git a/src/FetchAPI/Headers.res b/src/FetchAPI/Headers.res index ed70403c..8880792d 100644 --- a/src/FetchAPI/Headers.res +++ b/src/FetchAPI/Headers.res @@ -1,5 +1,4 @@ open FetchAPI -open Prelude /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers) diff --git a/src/FetchAPI/URLSearchParams.res b/src/FetchAPI/URLSearchParams.res index a09c66af..4f98df6c 100644 --- a/src/FetchAPI/URLSearchParams.res +++ b/src/FetchAPI/URLSearchParams.res @@ -1,5 +1,4 @@ open FetchAPI -open Prelude /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams) diff --git a/tests/WebStorageAPI/Storage__test.res b/tests/WebStorageAPI/Storage__test.res index 4a7d2dc4..a430b94e 100644 --- a/tests/WebStorageAPI/Storage__test.res +++ b/tests/WebStorageAPI/Storage__test.res @@ -1,4 +1,4 @@ -open WebAPI.Global +open Global open WebAPI.Storage for i in 0 to localStorage.length - 1 { diff --git a/tests/index.js b/tests/index.js index ab8ad152..63369f4d 100644 --- a/tests/index.js +++ b/tests/index.js @@ -9,7 +9,7 @@ const repoRoot = path.resolve(currentDir, ".."); const testsDir = path.join(repoRoot, "tests"); // Compile all tests -execSync("npx rescript", { cwd: repoRoot, stdio: "inherit" }); +execSync("npm run build", { cwd: repoRoot, stdio: "inherit" }); const successGreen = "\x1b[32m"; const warningYellow = "\x1b[33m";