Skip to content

Use latest rewatch #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@
"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",
"build:docs": "astro build"
},
"license": "MIT",
"dependencies": {
"rescript": "^12.0.0-alpha.9"
"rescript": "^12.0.0-alpha.13"
},
"devDependencies": {
"@astrojs/starlight": "0.34.3",
Expand Down
1 change: 0 additions & 1 deletion src/CanvasAPI/FillStyle.res
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
open Prelude
open CanvasAPI
open DOMAPI

external fromString: string => fillStyle = "%identity"
external fromCanvasGradient: canvasGradient => fillStyle = "%identity"
Expand Down
1 change: 0 additions & 1 deletion src/FetchAPI/Headers.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
open FetchAPI
open Prelude

/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/Headers)
Expand Down
1 change: 0 additions & 1 deletion src/FetchAPI/URLSearchParams.res
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
open FetchAPI
open Prelude

/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/URLSearchParams)
Expand Down
2 changes: 1 addition & 1 deletion tests/WebStorageAPI/Storage__test.res
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
open WebAPI.Global
open Global
open WebAPI.Storage

for i in 0 to localStorage.length - 1 {
Expand Down
2 changes: 1 addition & 1 deletion tests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down