- @types/node 22.20.1 -> 26.4.1 - c8 10.1.3 -> 12.0.0 - check-outdated 2.16.1 -> 3.0.0 - cspell 8.19.4 -> 10.2.1 - lefthook 1.13.6 -> 2.1.12 - sort-package-json 3.7.1 -> 4.0.0 - type-fest 4.41.0 -> 5.9.0 Verified all configs remain compatible without changes: - cspell 10 reads the existing JSON config (v0.2 format unchanged) - lefthook 2 accepts the v1-style config (pre-commit.jobs[], commands:) - c8 12 still wraps 'node --test --strip-types' and produces the same text/lcov/html reports - check-outdated 3 keeps the --ignore-packages and --ignore-pre-releases flags we use Full pipeline passes: - npm run check exits 0 (oxlint, oxfmt, tsc, cspell, sort-package-json, check-outdated all green) - npm test: 6/6 pass - npm run test:ci: coverage report generated successfully - lefthook run pre-commit: hooks execute correctly
88 lines
3.4 KiB
JSON
88 lines
3.4 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 --ignore-pre-releases --ignore-packages @oxfmt/binding-darwin-arm64,@oxfmt/binding-darwin-x64,@oxfmt/binding-linux-arm64-gnu,@oxfmt/binding-linux-arm64-musl,@oxfmt/binding-linux-x64-gnu,@oxfmt/binding-linux-x64-musl,@oxfmt/binding-win32-x64-msvc,@oxlint/binding-darwin-arm64,@oxlint/binding-darwin-x64,@oxlint/binding-linux-arm64-gnu,@oxlint/binding-linux-arm64-musl,@oxlint/binding-linux-x64-gnu,@oxlint/binding-linux-x64-musl,@oxlint/binding-win32-x64-msvc",
|
|
"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": {
|
|
"@types/node": "^26.4.1",
|
|
"c8": "^12.0.0",
|
|
"check-outdated": "^3.0.0",
|
|
"cspell": "^10.2.1",
|
|
"expect-type": "1.4.0",
|
|
"lefthook": "^2.1.12",
|
|
"oxfmt": "^0.66.0",
|
|
"oxlint": "^1.81.0",
|
|
"sort-package-json": "^4.0.0",
|
|
"tslib": "^2.8.1",
|
|
"type-fest": "^5.9.0",
|
|
"typescript": "^7.0.2"
|
|
},
|
|
"optionalDependencies": {
|
|
"@oxfmt/binding-darwin-arm64": "^0.66.0",
|
|
"@oxfmt/binding-darwin-x64": "^0.66.0",
|
|
"@oxfmt/binding-linux-arm64-gnu": "^0.66.0",
|
|
"@oxfmt/binding-linux-arm64-musl": "^0.66.0",
|
|
"@oxfmt/binding-linux-x64-gnu": "^0.66.0",
|
|
"@oxfmt/binding-linux-x64-musl": "^0.66.0",
|
|
"@oxfmt/binding-win32-x64-msvc": "^0.66.0",
|
|
"@oxlint/binding-darwin-arm64": "^1.81.0",
|
|
"@oxlint/binding-darwin-x64": "^1.81.0",
|
|
"@oxlint/binding-linux-arm64-gnu": "^1.81.0",
|
|
"@oxlint/binding-linux-arm64-musl": "^1.81.0",
|
|
"@oxlint/binding-linux-x64-gnu": "^1.81.0",
|
|
"@oxlint/binding-linux-x64-musl": "^1.81.0",
|
|
"@oxlint/binding-win32-x64-msvc": "^1.81.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=26"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|