Skip to content

Commit

Permalink
chore: fix ERR_UNKNOWN_FILE_EXTENSION for ava & commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd committed Jan 18, 2024
1 parent a2528b5 commit 3437b9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

NODE_OPTIONS='--loader=tsx --no-warnings' npx --no-install commitlint --edit "$1"
NODE_OPTIONS='--import=tsx --no-warnings' npx --no-install commitlint --edit "$1"
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"dev": "pnpm test:watch",
"build:watch": "pkgroll --watch",
"build": "pnpm run clean && pkgroll --target=node18",
"test": "NODE_OPTIONS='--import tsx --no-warnings' ava",
"test:watch": "NODE_OPTIONS='--import tsx --no-warnings' ava --watch",
"test": "NODE_OPTIONS='--import=tsx --no-warnings' ava",
"test:watch": "NODE_OPTIONS='--import=tsx --no-warnings' ava --watch",
"e2e": "docker run --rm -it $(docker build -f src/e2e/Dockerfile -q .)",
"tsc": "tsc",
"prepare": "husky install",
Expand All @@ -50,7 +50,7 @@
},
"ava": {
"extensions": {
"ts": "module"
"ts": "commonjs"
}
},
"lint-staged": {
Expand Down

0 comments on commit 3437b9c

Please sign in to comment.