Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: pnpm eslint

- name: Check Types
run: pnpm tsc --noEmit
run: pnpm tsc

- name: Test Library
run: pnpm test
Expand Down
6 changes: 2 additions & 4 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ pre-commit:
run: pnpm eslint --no-warn-ignored --fix {staged_files}

- name: check types
run: pnpm tsc --noEmit
run: pnpm tsc
glob:
- src/*.ts
- "*.ts"
- .npmrc
- pnpm-lock.yaml
- tsconfig.json
exclude:
- src/*.test.ts

- name: check diff
run: git diff --exit-code {staged_files}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dist"
],
"scripts": {
"prepack": "tsc",
"prepack": "tsc -p tsconfig.build.json",
"start": "vite-node src/bin.ts",
"test": "vitest run"
},
Expand Down
10 changes: 10 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig",
"include": ["src"],
"exclude": ["**/*.test.*"],
"compilerOptions": {
"declaration": true,
"noEmit": false,
"outDir": "dist"
}
}
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": "@tsconfig/node24",
"include": ["src"],
"exclude": ["**/*.test.*"],
"compilerOptions": {
"declaration": true,
"outDir": "dist"
"noEmit": true
}
}