Skip to content

Commit 8e412f4

Browse files
committed
chore: maintenance and configuration updates
1 parent f706e34 commit 8e412f4

6 files changed

Lines changed: 8 additions & 5 deletions

File tree

.dependency-cruiser.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
"from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration",
5858
from: {
5959
path: "^(src|app|lib)",
60-
pathNot: "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$",
60+
pathNot: "(\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$|__tests__|[-.]test\\.ts$)",
6161
},
6262
to: {
6363
dependencyTypes: ["npm-dev"],

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Test & Build
3434
run: |
3535
pnpm build
36+
pnpm type-check
3637
pnpm test:code:gen
3738
pnpm test
3839
env:

lefthook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pre-commit:
22
commands:
33
format:
44
glob: "*.{js,jsx,json,yml,yaml,html,md,ts,tsx}"
5-
run: biome format --no-errors-on-unmatched --write {staged_files}
5+
run: pnpm exec biome format --no-errors-on-unmatched --write {staged_files}
66
stage_fixed: true
77
sort-package-json:
88
glob: "package.json"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"test:snapshot": "vitest run --config ./vitest.snapshot.config.ts",
7474
"test:vitest": "vitest run --config ./vitest.config.ts --coverage",
7575
"ts": "node --no-warnings=ExperimentalWarning --experimental-specifier-resolution=node --loader ts-node/esm",
76+
"type-check": "tsc --noEmit",
7677
"update:snapshot": "vitest run --config ./vitest.snapshot.config.ts --update",
7778
"validate": "pnpm ts ./scripts/validate.ts",
7879
"watch": "pnpm ts ./scripts/watch.ts"

scripts/tools/shell.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ExecaChildProcess, execa } from "execa";
1+
import { type ResultPromise, execa } from "execa";
22

3-
export const shell = (command: string, cwd: string = process.cwd()): ExecaChildProcess<string> => {
3+
export const shell = (command: string, cwd: string = process.cwd()): ResultPromise => {
44
return execa(command, {
55
stdio: ["pipe", "pipe", "inherit"],
66
shell: true,

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
"ts-node": {
2020
"esm": true,
2121
"swc": true
22-
}
22+
},
23+
"exclude": ["test/code", "examples/"]
2324
}

0 commit comments

Comments
 (0)