From c6f7a5d1b0f3c62811f16d1b0508bcde6285d9f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 3 Sep 2026 22:08:01 +0000 Subject: [PATCH] :wrench: Reconcile config/doc contradictions and remove stale entries --- .gitignore | 21 ++++----------------- .npmignore | 1 - README.md | 2 +- cspell.json | 9 +-------- lefthook.yml | 6 +++--- project-specs.md | 2 +- tsconfig.build.json | 3 +-- 7 files changed, 11 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index c941daf..f0a5812 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,8 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -coverage node_modules dist -dist-ssr +coverage +*.log +*.tsbuildinfo *.local # Editor directories and files @@ -19,9 +11,4 @@ dist-ssr !.vscode/settings.json !.vscode/tasks.json .idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? +.DS_Store \ No newline at end of file diff --git a/.npmignore b/.npmignore index 578b5bd..6aed7f4 100644 --- a/.npmignore +++ b/.npmignore @@ -10,5 +10,4 @@ src/ .node-version cspell.json lefthook.yml -LICENSE commit-message-template \ No newline at end of file diff --git a/README.md b/README.md index df6a7f1..350dcf0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Pattern matching for TypeScript/ESM environments (F#-style, not regex). ### Requirements -- Node.js >= 22.6 (>= 24 recommended; `--experimental-strip-types` is unflagged on 24). +- Node.js >= 26 (engines field; pinned via `.node-version`). ## VSCode integration diff --git a/cspell.json b/cspell.json index b106a8e..e89aaf9 100644 --- a/cspell.json +++ b/cspell.json @@ -17,12 +17,5 @@ "dbaeumer", "msvc" ], - "ignorePaths": [ - "dist", - "node_modules", - "public", - "coverage", - "*.svg", - ".gitignore" - ] + "ignorePaths": ["dist", "node_modules", "coverage", "*.svg", ".gitignore"] } diff --git a/lefthook.yml b/lefthook.yml index edf454b..404c23d 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -5,11 +5,11 @@ pre-commit: commands: oxlint: glob: "*.{ts,tsx,js,jsx,mjs,cjs}" - run: sh -c 'LEFTHOOK_FILES="$0" npm run check:oxlint' {staged_files} + run: sh -c 'LEFTHOOK_FILES="$*" npm run check:oxlint' sh {staged_files} oxfmt: glob: "*.{ts,tsx,js,jsx,mjs,cjs,json,jsonc,yaml,yml,md,mdx}" - run: sh -c 'LEFTHOOK_FILES="$0" npm run check:oxfmt' {staged_files} + run: sh -c 'LEFTHOOK_FILES="$*" npm run check:oxfmt' sh {staged_files} cspell: - run: sh -c 'LEFTHOOK_FILES="$0" npm run check:cspell' {staged_files} + run: sh -c 'LEFTHOOK_FILES="$*" npm run check:cspell' sh {staged_files} typecheck: run: npm run check:tsc diff --git a/project-specs.md b/project-specs.md index 04ebab1..56a34b2 100644 --- a/project-specs.md +++ b/project-specs.md @@ -202,7 +202,7 @@ typescript-lib-starter-tiny => https://github.com/tmueller/typescript-lib-starte alphabetized (replaces the former `sort-package-json` tool). Built-in import sorting (enabled via `sortImports: true`) replaces any external import-sort plugin. -- `check:tsc`: `tsc --noEmit`. +- `check:tsc`: `tsc` (noEmit is set in `tsconfig.json`). - `check:cspell`: `cspell lint ${LEFTHOOK_FILES:-.}` — walks the project root by default; from lefthook, only the staged files. - `check:outdated`: `check-outdated --ignore-pre-releases --ignore-packages @oxfmt/binding-*,@oxlint/binding-*`. The oxc native bindings are declared as `optionalDependencies` so the correct one is selected per platform automatically; the `*`-platform bindings show as "not installed" on the current platform and are explicitly ignored here. diff --git a/tsconfig.build.json b/tsconfig.build.json index 3282b25..89e46ee 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -3,8 +3,7 @@ "compilerOptions": { "noEmit": false, "rewriteRelativeImportExtensions": true, - "rootDir": "src", - "outDir": "dist" + "rootDir": "src" }, "exclude": ["src/**/*.test.ts", "src/**/__tests__/**"] }