- Add .node-version (single line: '26') so fnm/nvm/volta/mise and the VS Code Node version manager extension auto-switch when entering the project directory - engines.node in package.json: bump from '>=22.6' to '>=26' (npm-side install-time declaration) - Drop --experimental-strip-types flag from node --test invocations: Node 26 has --strip-types unflagged - .github/workflows/ci.yml: switch from hard-coded node-version: 24 to node-version-file: .node-version in both build and publish jobs so CI follows the .node-version file (single source of truth) - .npmignore: add .node-version (developer-tool file, not for publish) - .vscode/settings.json: pin js/ts.tsdk.path to node_modules/typescript/lib so the editor uses the project's TS 7, not a different global install - .vscode/extensions.json: swap ms-vscode.vscode-typescript-next for typescriptteam.native-preview (the official TS team extension that ships nightly TS support, including TS 7) - cspell: add 'esbenp' and 'typescriptteam' to dictionary - package-lock.json: regenerated for engines.node >=26 tsconfig.json target/lib are unchanged: es2024 is the highest stable ES target TS 7.0.2 ships, and Node 26 supports all ES2024 features natively.
74 lines
2.3 KiB
JSON
74 lines
2.3 KiB
JSON
{
|
|
"name": "tiny-pattern-ts",
|
|
"version": "0.0.0",
|
|
"description": "Pattern matching for TypeScript/ESM environments (F#-style, not regex)",
|
|
"keywords": [
|
|
"pattern-matching",
|
|
"pattern",
|
|
"match",
|
|
"algebraic-data-types",
|
|
"adt",
|
|
"typescript"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tmueller/tiny-pattern-ts.git"
|
|
},
|
|
"license": "MIT",
|
|
"sideEffects": false,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"check": "npm run check:oxlint && npm run check:oxfmt && npm run check:tsc && npm run check:cspell && npm run check:package && npm run check:outdated",
|
|
"check:cspell": "cspell .",
|
|
"check:outdated": "check-outdated",
|
|
"check:oxfmt": "oxfmt --check src",
|
|
"check:oxlint": "oxlint src",
|
|
"check:package": "sort-package-json --check",
|
|
"check:tsc": "tsc --noEmit",
|
|
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
|
|
"fix:oxfmt": "oxfmt src",
|
|
"fix:oxlint": "oxlint --fix src",
|
|
"fix:package": "sort-package-json --write",
|
|
"test": "npm run check:tsc && node --test --strip-types src/",
|
|
"test:ci": "c8 --reporter=text --reporter=lcov --reporter=html node --test --strip-types src/",
|
|
"test:unit": "node --test --strip-types src/",
|
|
"use:git-commit-message": "cp commit-message-template .git/COMMIT_EDITMSG || true"
|
|
},
|
|
"devDependencies": {
|
|
"@oxfmt/binding-linux-x64-musl": "^0.66.0",
|
|
"@oxlint/binding-linux-x64-musl": "^1.81.0",
|
|
"@types/node": "^22.10.0",
|
|
"c8": "^10.1.3",
|
|
"check-outdated": "^2.13.0",
|
|
"cspell": "^8.19.3",
|
|
"expect-type": "1.4.0",
|
|
"lefthook": "^1.11.12",
|
|
"oxfmt": "^0.66.0",
|
|
"oxlint": "^1.81.0",
|
|
"sort-package-json": "^3.1.0",
|
|
"tslib": "^2.8.1",
|
|
"type-fest": "^4.40.1",
|
|
"typescript": "^7.0.2"
|
|
},
|
|
"engines": {
|
|
"node": ">=26"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|