87 lines
2.0 KiB
JSON
87 lines
2.0 KiB
JSON
{
|
|
"name": "path-to-regexp",
|
|
"description": "Express style path to RegExp utility",
|
|
"version": "6.2.0",
|
|
"main": "dist/index.js",
|
|
"typings": "dist/index.d.ts",
|
|
"module": "dist.es2015/index.js",
|
|
"sideEffects": false,
|
|
"files": [
|
|
"dist/",
|
|
"dist.es2015/"
|
|
],
|
|
"scripts": {
|
|
"prettier": "prettier --write",
|
|
"lint": "tslint \"src/**/*\" --project tsconfig.json",
|
|
"format": "npm run prettier -- \"{.,src/**}/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
|
|
"build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json",
|
|
"specs": "jest --coverage",
|
|
"test": "npm run build && npm run lint && npm run specs && npm run size",
|
|
"size": "size-limit",
|
|
"prepare": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"express",
|
|
"regexp",
|
|
"route",
|
|
"routing"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/pillarjs/path-to-regexp.git"
|
|
},
|
|
"size-limit": [
|
|
{
|
|
"path": "dist/index.js",
|
|
"limit": "2 kB"
|
|
}
|
|
],
|
|
"jest": {
|
|
"roots": [
|
|
"<rootDir>/src/"
|
|
],
|
|
"transform": {
|
|
"\\.tsx?$": "ts-jest"
|
|
},
|
|
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
|
"moduleFileExtensions": [
|
|
"ts",
|
|
"tsx",
|
|
"js",
|
|
"jsx",
|
|
"json",
|
|
"node"
|
|
]
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx,json,md,yml,yaml}": "npm run prettier"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"@size-limit/preset-small-lib": "^4.5.6",
|
|
"@types/jest": "^26.0.9",
|
|
"@types/node": "^14.0.27",
|
|
"@types/semver": "^7.3.1",
|
|
"husky": "^4.2.5",
|
|
"jest": "^26.2.2",
|
|
"lint-staged": "^10.2.11",
|
|
"prettier": "^2.0.5",
|
|
"rimraf": "^3.0.0",
|
|
"semver": "^7.3.2",
|
|
"size-limit": "^4.5.6",
|
|
"ts-jest": "^26.1.4",
|
|
"tslint": "^6.1.3",
|
|
"tslint-config-prettier": "^1.18.0",
|
|
"tslint-config-standard": "^9.0.0",
|
|
"typescript": "^4.0.3"
|
|
}
|
|
}
|