Skip to content

Commit

Permalink
Fix JS type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Dec 16, 2023
1 parent 9985d9c commit 8973627
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@ jobs:
- run: vendor/bin/phpunit --testdox --colors=always
- run: npm ci && npm run build
- run: npm run test
- run: npm run typecheck
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@
"build:esm": "microbundle -i ./src/js/index.js -o ./dist/index.js --format modern,esm --no-sourcemap --external none --no-generateTypes",
"build:npm": "microbundle -i ./src/js/index.js -o ./dist/index.js --format modern,esm --no-sourcemap --no-generateTypes",
"build:umd": "microbundle -i ./src/js/browser.js -o ./dist/route.js --format umd --name route --no-sourcemap --external none --no-generateTypes",
"test": "vitest",
"typecheck": "vitest typecheck",
"test": "vitest --typecheck",
"format": "prettier . --write",
"prepublishOnly": "rm -r ./dist/* && npm run build:npm"
},
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"compilerOptions": {
"module": "ESNext",
"moduleResolution": "Bundler"
},
"exclude": ["vendor"]
}

0 comments on commit 8973627

Please sign in to comment.