-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
package.json
111 lines (111 loc) · 2.69 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "@jmondi/oauth2-server",
"version": "4.0.2",
"type": "module",
"author": "Jason Raimondi <[email protected]>",
"funding": "https://github.com/sponsors/jasonraimondi",
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
"prebuild": "run-s clean",
"bundle": "tsup",
"build": "run-s clean bundle",
"start": "tsc -p tsconfig.build.json --watch",
"test": "vitest run",
"test:watch": "vitest",
"test:cov": "vitest run --coverage",
"format": "prettier --write \"**/*.{ts,js,tsx,md,mdx}\"",
"prepublishOnly": "run-s build test"
},
"exports": {
".": "./src/index.ts",
"./vanilla": "./src/adapters/vanilla.ts",
"./express": "./src/adapters/express.ts",
"./fastify": "./src/adapters/fastify.ts"
},
"publishConfig": {
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
},
"./vanilla": {
"import": "./dist/vanilla.js",
"require": "./dist/vanilla.cjs",
"types": "./dist/vanilla.d.ts"
},
"./express": {
"import": "./dist/express.js",
"require": "./dist/express.cjs",
"types": "./dist/express.d.ts"
},
"./fastify": {
"import": "./dist/fastify.js",
"require": "./dist/fastify.cjs",
"types": "./dist/fastify.d.ts"
}
},
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
}
},
"files": [
"dist",
"src"
],
"engines": {
"node": ">=16"
},
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/express": "^4.17.21",
"@types/jsonwebtoken": "^9.0.6",
"@types/ms": "^0.7.34",
"@types/node": "^20.14.9",
"@types/supertest": "^6.0.2",
"@vitest/coverage-istanbul": "^1.6.0",
"body-parser": "^1.20.2",
"express": "^4.19.2",
"fastify": "^4.28.1",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"supertest": "^7.0.0",
"tslib": "^2.6.3",
"tsup": "^8.1.0",
"typescript": "^5.5.3",
"vite": "^5.3.2",
"vitest": "^1.6.0"
},
"dependencies": {
"jsonwebtoken": "^9.0.2",
"ms": "^2.1.3",
"uri-js": "^4.4.1"
},
"tsup": {
"entry": {
"index": "./src/index.ts",
"vanilla": "./src/adapters/vanilla.ts",
"express": "./src/adapters/express.ts",
"fastify": "./src/adapters/fastify.ts"
},
"format": [
"cjs",
"esm"
],
"target": "node16",
"clean": true,
"dts": true,
"splitting": false,
"sourcemap": true
}
}