|
2 | 2 | "name": "egg-path-matching", |
3 | 3 | "version": "1.1.0", |
4 | 4 | "engine": { |
5 | | - "node": ">= 4.0.0" |
| 5 | + "node": ">= 18.19.0" |
6 | 6 | }, |
7 | 7 | "description": "match or ignore url path", |
8 | | - "main": "index.js", |
9 | | - "files": [ |
10 | | - "index.js" |
11 | | - ], |
12 | 8 | "scripts": { |
13 | | - "test": "egg-bin test", |
14 | | - "cov": "egg-bin cov", |
15 | | - "lint": "eslint *.js test", |
16 | | - "ci": "npm run lint && npm run cov", |
17 | | - "contributor": "git-contributor" |
| 9 | + "lint": "eslint src test", |
| 10 | + "test": "npm run lint -- --fix && npm run test-local", |
| 11 | + "test-local": "egg-bin test", |
| 12 | + "ci": "npm run lint && egg-bin cov && npm run prepublishOnly", |
| 13 | + "contributor": "git-contributor", |
| 14 | + "prepublishOnly": "tshy && tshy-after" |
18 | 15 | }, |
19 | 16 | "keywords": [ |
20 | 17 | "url", |
|
32 | 29 | }, |
33 | 30 | "license": "MIT", |
34 | 31 | "dependencies": { |
35 | | - "path-to-regexp": "^1.7.0" |
| 32 | + "path-to-regexp": "^6.2.2" |
36 | 33 | }, |
37 | 34 | "devDependencies": { |
38 | | - "egg-bin": "^6.5.2", |
39 | | - "eslint": "^8.55.0", |
40 | | - "eslint-config-egg": "12", |
41 | | - "git-contributor": "^2.1.5" |
42 | | - } |
| 35 | + "@eggjs/tsconfig": "1", |
| 36 | + "@types/mocha": "10", |
| 37 | + "@types/node": "20", |
| 38 | + "egg-bin": "6", |
| 39 | + "eslint": "8", |
| 40 | + "eslint-config-egg": "13", |
| 41 | + "git-contributor": "2", |
| 42 | + "tshy": "1", |
| 43 | + "tshy-after": "1", |
| 44 | + "typescript": "5" |
| 45 | + }, |
| 46 | + "files": [ |
| 47 | + "dist", |
| 48 | + "src" |
| 49 | + ], |
| 50 | + "type": "module", |
| 51 | + "tshy": { |
| 52 | + "exports": { |
| 53 | + "./package.json": "./package.json", |
| 54 | + ".": "./src/index.ts" |
| 55 | + } |
| 56 | + }, |
| 57 | + "exports": { |
| 58 | + "./package.json": "./package.json", |
| 59 | + ".": { |
| 60 | + "import": { |
| 61 | + "source": "./src/index.ts", |
| 62 | + "types": "./dist/esm/index.d.ts", |
| 63 | + "default": "./dist/esm/index.js" |
| 64 | + }, |
| 65 | + "require": { |
| 66 | + "source": "./src/index.ts", |
| 67 | + "types": "./dist/commonjs/index.d.ts", |
| 68 | + "default": "./dist/commonjs/index.js" |
| 69 | + } |
| 70 | + } |
| 71 | + }, |
| 72 | + "main": "./dist/commonjs/index.js", |
| 73 | + "types": "./dist/commonjs/index.d.ts" |
43 | 74 | } |
0 commit comments