project-specs.md: - Replace Prettier/ESLint/Vite/Vitest references with oxfmt/oxlint/oxc and TypeScript 7 / node --test - Drop @tsconfig/strictest note; rules are inlined in tsconfig.json, enumerated explicitly - Document oxlint rule disables (no-undefined, sort-keys, id-length, no-named-export) and test-file overrides (no-unused-expressions, no-empty-file, no-nodejs-modules, no-magic-numbers) - Document Node 26 / .node-version / engines.node / CI follow - Document allowImportingTsExtensions + rewriteRelativeImportExtensions for the node --strip-types quirk - Replace Vite/vitest coverage example with c8 + node --test - Sync scripts section: drop check:eslint, check:prettier and their fix:* counterparts; add check:oxlint/check:oxfmt/fix:oxlint/fix:oxfmt - Add current source layout (index.ts, match.ts, pattern.ts, index.test.ts) - Update VSCode integration section with actual settings.json and extensions.json contents - Document the actual commit history with gitmoji prefixes - Fix 'initilizing' typo - Drop 'changesets is a devDep' claims (changesets is not installed) package.json: - Move @oxfmt/binding-* and @oxlint/binding-* from devDependencies to optionalDependencies so the right binding is selected per platform (CI on Ubuntu gnu gets the gnu binding automatically, not the local musl one) - Extend check:outdated to ignore the platform-specific bindings (they show as 'not installed' on the current platform, which is correct - Add cspell words: gitmoji, dbaeumer, msvc (the latter for the Windows binding variant). Drop the unused 'nocheck' word README.md: - Drop the 'changesets is available as a devDep' line; changesets isn't installed
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": "^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"
|
|
},
|
|
"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"
|
|
}
|
|
}
|