{ "name": "@substrate-system/routes", "description": "Route matcher devised for shared rendering JavaScript applications", "type": "module", "version": "5.0.5", "main": "dist/index.js", "files": [ "./dist/*" ], "scripts": { "lint": "eslint \"./**/*.{ts,js}\"", "build-tests": "esbuild test/index.ts --format=esm --target=es2020 --bundle --keep-names > test/test-bundle.js", "test": "npm run test-main && npm run test-next", "test-main": "esbuild ./test/index.ts --format=esm --platform=node --bundle --keep-names | node --input-type=module", "test-next": "esbuild ./test/next.ts --format=esm --platform=node --bundle --keep-names | node --input-type=module", "build-cjs": "esbuild src/*.ts --format=cjs --tsconfig=tsconfig.build.json --keep-names --outdir=./dist --out-extension:.js=.cjs", "build-esm": "esbuild src/*.ts --format=esm --tsconfig=tsconfig.json --keep-names --outdir=./dist && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist", "build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm", "build-docs": "typedoc ./src/index.ts", "preversion": "npm run lint", "version": "auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md", "postversion": "git push --follow-tags && npm publish", "prepublishOnly": "npm run build" }, "devDependencies": { "@preact/preset-vite": "^2.8.1", "@types/node": "^25.0.3", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "auto-changelog": "^2.4.0", "esbuild": "^0.27.2", "eslint": "^8.57.0", "eslint-config-standard": "^17.1.0", "typedoc": "^0.28.14", "typescript": "^5.3.3" }, "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./*": { "import": [ "./dist/*.js", "./dist/*" ], "require": [ "./dist/*.cjs", "./dist/*" ] } }, "author": "nichoth (https://nichoth.com)", "directories": { "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/substrate-system/routes.git" }, "keywords": [ "router", "routes", "client-side", "browser" ], "bugs": { "url": "https://github.com/substrate-system/routes/issues" }, "homepage": "https://github.com/substrate-system/routes", "license": "SEE LICENSE IN LICENSE" }