Skip to content

Commit a9facd8

Browse files
authored
test: run type checks (#45)
1 parent 6529f25 commit a9facd8

File tree

9 files changed

+23
-19
lines changed

9 files changed

+23
-19
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
with:
3535
python-version: "3.11"
3636

37-
- name: Setup emsdk
37+
- name: Set up emsdk
3838
uses: mymindstorm/setup-emsdk@v14
3939
with:
4040
version: 4.0.13
4141

42-
- name: Setup Rust for WebAssembly
42+
- name: Set up Rust for WebAssembly
4343
run: |
4444
rustup target add wasm32-unknown-unknown
4545
cargo install -f wasm-bindgen-cli --version 0.2.100
@@ -64,10 +64,13 @@ jobs:
6464
run: ./scripts/build_wasm.sh
6565

6666
- name: Build JavaScript and Python packages
67-
run: ./scripts/build.sh
67+
run: npm run build
68+
69+
- name: Run type checks
70+
run: npm run check
6871

6972
- name: Run tests
70-
run: ./scripts/test.sh
73+
run: npm run test
7174

7275
- name: Upload node package artifact
7376
uses: actions/upload-artifact@v4

package-lock.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
],
1515
"scripts": {
1616
"build": "./scripts/build.sh",
17-
"test": "./scripts/test.sh",
17+
"test": "npm run test -w @embedding-atlas/density-clustering -w @embedding-atlas/umap-wasm",
18+
"check": "npm run check -w @embedding-atlas/component -w @embedding-atlas/table -w @embedding-atlas/viewer -w @embedding-atlas/embedding-atlas -w @embedding-atlas/examples || true",
1819
"check-format": "prettier -c ."
1920
},
2021
"devDependencies": {

packages/component/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"check": "svelte-check",
910
"package": "npm run build && publint",
1011
"preview": "vite preview"
1112
},
@@ -49,6 +50,7 @@
4950
"simplify-js": "^1.2.4",
5051
"stemmer": "^2.0.1",
5152
"svelte": "^5.37.3",
53+
"svelte-check": "^4.3.1",
5254
"typescript": "^5.9.2",
5355
"vite": "^7.0.6",
5456
"vite-plugin-dts": "^4.5.4",

packages/embedding-atlas/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"scripts": {
3535
"dev": "vite",
3636
"build": "vite build",
37+
"check": "svelte-check",
3738
"package": "npm run build && publint",
3839
"preview": "vite preview"
3940
},
@@ -81,6 +82,7 @@
8182
"tslib": "^2.8.1",
8283
"typescript": "^5.9.2",
8384
"vite": "^7.0.6",
84-
"vite-plugin-dts": "^4.5.4"
85+
"vite-plugin-dts": "^4.5.4",
86+
"svelte-check": "^4.3.1"
8587
}
8688
}

packages/examples/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"check": "svelte-check",
910
"package": "npm run build",
1011
"preview": "vite preview"
1112
},
@@ -22,6 +23,7 @@
2223
"react": "^19.1.1",
2324
"react-dom": "^19.1.1",
2425
"svelte": "^5.37.3",
26+
"svelte-check": "^4.3.1",
2527
"svelte-spa-router": "^4.0.1",
2628
"tailwindcss": "^4.1.11",
2729
"tslib": "^2.8.1",

packages/table/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"check": "svelte-check",
910
"package": "npm run build && publint",
1011
"preview": "vite preview"
1112
},

packages/viewer/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build && vite build --config vite.config.lib.js",
9+
"check": "svelte-check",
910
"package": "npm run build && publint",
1011
"preview": "vite preview"
1112
},
@@ -54,6 +55,7 @@
5455
"prism-code-editor": "^4.1.0",
5556
"publint": "^0.3.12",
5657
"svelte": "^5.37.3",
58+
"svelte-check": "^4.3.1",
5759
"svelte-spa-router": "^4.0.1",
5860
"tailwindcss": "^4.1.11",
5961
"tslib": "^2.8.1",

scripts/test.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)