Override the prior design choice: there is now an npm run fix script that runs fix:oxlint && fix:oxfmt. Rationale: the friction of having to remember and run two separate fix commands after npm run check outweighs the 'intentional fixes' argument once check has already told you which fixers are needed. The diff after running fix remains the review surface. - package.json: new 'fix' script (npm run fix:oxlint && npm run fix:oxfmt) - project-specs.md: updated the FIX section to document the new aggregator, removed the 'no fix aggregator by design' text in two places (FIX section and PREFIX CONVENTION section) - README.md: same updates, plus the Development section header changed from 'Format/Fix' to 'Individual fixes' to reflect the new hierarchy
102 lines
4.3 KiB
JSON
102 lines
4.3 KiB
JSON
{
|
|
"name": "tiny-pattern-ts",
|
|
"version": "0.0.0",
|
|
"description": "Pattern matching for TypeScript/ESM environments (F#-style, not regex)",
|
|
"keywords": [
|
|
"adt",
|
|
"algebraic-data-types",
|
|
"match",
|
|
"pattern",
|
|
"pattern-matching",
|
|
"typescript"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/tmueller/tiny-pattern-ts.git"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md",
|
|
"LICENSE"
|
|
],
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.build.json",
|
|
"check": "npm run check:tsc && npm run check:oxlint && npm run check:oxfmt && npm run check:cspell && npm run check:knip && npm run check:outdated",
|
|
"check:cspell": "cspell lint ${LEFTHOOK_FILES:-.}",
|
|
"check:knip": "knip --include dependencies,exports,files",
|
|
"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,@oxlint-tsgolint/darwin-arm64,@oxlint-tsgolint/darwin-x64,@oxlint-tsgolint/linux-arm64,@oxlint-tsgolint/linux-x64,@oxlint-tsgolint/win32-arm64,@oxlint-tsgolint/win32-x64",
|
|
"check:oxfmt": "oxfmt --check ${LEFTHOOK_FILES:-.}",
|
|
"check:oxlint": "oxlint ${LEFTHOOK_FILES:-src}",
|
|
"check:tsc": "tsc",
|
|
"clean": "node -e \"fs.rmSync('dist', { recursive: true, force: true })\"",
|
|
"fix": "npm run fix:oxlint && npm run fix:oxfmt",
|
|
"fix:oxfmt": "oxfmt ${LEFTHOOK_FILES:-.}",
|
|
"fix:oxlint": "oxlint --fix src",
|
|
"test": "npm run check:tsc && node --test --strip-types \"src/**/*.test.ts\"",
|
|
"test:ci": "c8 --reporter=text --reporter=lcov --reporter=html node --test --strip-types \"src/**/*.test.ts\"",
|
|
"test:unit": "node --test --strip-types \"src/**/*.test.ts\"",
|
|
"publish:attw": "attw . --pack --profile esm-only",
|
|
"publish:publint": "publint",
|
|
"use:git-commit-message": "cp commit-message-template .git/COMMIT_EDITMSG || true"
|
|
},
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
"@tsconfig/node26": "^26.0.1",
|
|
"@tsconfig/strictest": "^2.0.8",
|
|
"@types/node": "^26.4.1",
|
|
"c8": "^12.0.0",
|
|
"check-outdated": "^3.0.0",
|
|
"cspell": "^10.2.2",
|
|
"expect-type": "1.4.0",
|
|
"knip": "^6.34.0",
|
|
"lefthook": "^2.1.12",
|
|
"oxfmt": "^0.66.0",
|
|
"oxlint": "^1.81.0",
|
|
"oxlint-tsgolint": "^7.0.2001",
|
|
"publint": "^0.3.24",
|
|
"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-tsgolint/darwin-arm64": "^7.0.2001",
|
|
"@oxlint-tsgolint/darwin-x64": "^7.0.2001",
|
|
"@oxlint-tsgolint/linux-arm64": "^7.0.2001",
|
|
"@oxlint-tsgolint/linux-x64": "^7.0.2001",
|
|
"@oxlint-tsgolint/win32-arm64": "^7.0.2001",
|
|
"@oxlint-tsgolint/win32-x64": "^7.0.2001",
|
|
"@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"
|
|
},
|
|
"allowScripts": {
|
|
"lefthook@2.1.12": true
|
|
}
|
|
}
|