Skip to content

Commit 8973627

Browse files
committed
Fix JS type tests
1 parent 9985d9c commit 8973627

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ jobs:
4141
- run: vendor/bin/phpunit --testdox --colors=always
4242
- run: npm ci && npm run build
4343
- run: npm run test
44-
- run: npm run typecheck

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@
4242
"build:esm": "microbundle -i ./src/js/index.js -o ./dist/index.js --format modern,esm --no-sourcemap --external none --no-generateTypes",
4343
"build:npm": "microbundle -i ./src/js/index.js -o ./dist/index.js --format modern,esm --no-sourcemap --no-generateTypes",
4444
"build:umd": "microbundle -i ./src/js/browser.js -o ./dist/route.js --format umd --name route --no-sourcemap --external none --no-generateTypes",
45-
"test": "vitest",
46-
"typecheck": "vitest typecheck",
45+
"test": "vitest --typecheck",
4746
"format": "prettier . --write",
4847
"prepublishOnly": "rm -r ./dist/* && npm run build:npm"
4948
},

tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2+
"compilerOptions": {
3+
"module": "ESNext",
4+
"moduleResolution": "Bundler"
5+
},
26
"exclude": ["vendor"]
37
}

0 commit comments

Comments
 (0)