UNPKG

1.97 kBJSONView Raw
1{
2 "name": "path-to-regexp",
3 "description": "Express style path to RegExp utility",
4 "version": "6.1.0",
5 "main": "dist/index.js",
6 "typings": "dist/index.d.ts",
7 "module": "dist.es2015/index.js",
8 "sideEffects": false,
9 "files": [
10 "dist/",
11 "dist.es2015/"
12 ],
13 "scripts": {
14 "prettier": "prettier --write",
15 "lint": "tslint \"src/**/*\" --project tsconfig.json",
16 "format": "npm run prettier -- \"{.,src/**}/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
17 "build": "rimraf dist/ dist.es2015/ && tsc && tsc -P tsconfig.es2015.json",
18 "specs": "jest --coverage",
19 "test": "npm run build && npm run lint && npm run specs && npm run size",
20 "size": "size-limit",
21 "prepare": "npm run build"
22 },
23 "keywords": [
24 "express",
25 "regexp",
26 "route",
27 "routing"
28 ],
29 "license": "MIT",
30 "repository": {
31 "type": "git",
32 "url": "https://github.com/pillarjs/path-to-regexp.git"
33 },
34 "size-limit": [
35 {
36 "path": "dist/index.js",
37 "limit": "2 kB"
38 }
39 ],
40 "jest": {
41 "roots": [
42 "<rootDir>/src/"
43 ],
44 "transform": {
45 "\\.tsx?$": "ts-jest"
46 },
47 "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
48 "moduleFileExtensions": [
49 "ts",
50 "tsx",
51 "js",
52 "jsx",
53 "json",
54 "node"
55 ]
56 },
57 "husky": {
58 "hooks": {
59 "pre-commit": "lint-staged"
60 }
61 },
62 "lint-staged": {
63 "*.{js,jsx,ts,tsx,json,md,yml,yaml}": [
64 "npm run prettier",
65 "git add"
66 ]
67 },
68 "publishConfig": {
69 "access": "public"
70 },
71 "devDependencies": {
72 "@size-limit/preset-small-lib": "^2.1.6",
73 "@types/jest": "^24.0.22",
74 "@types/node": "^12.12.7",
75 "husky": "^3.0.9",
76 "jest": "^24.9.0",
77 "lint-staged": "^9.4.2",
78 "prettier": "^1.19.1",
79 "rimraf": "^3.0.0",
80 "ts-jest": "^24.1.0",
81 "tslint": "^5.20.1",
82 "tslint-config-prettier": "^1.18.0",
83 "tslint-config-standard": "^9.0.0",
84 "typescript": "^3.7.2"
85 }
86}