-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
110 lines (110 loc) · 3.42 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
{
"name": "@webmasterdevlin/json-server",
"version": "1.3.2",
"description": "A TypeScript implementation of json-server with additional features",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"json-server": "dist/bin/index.js"
},
"directories": {
"test": "test"
},
"scripts": {
"clean": "rimraf dist",
"build": "npm run clean && tsc",
"build:pnpm": "pnpm run clean && tsc",
"build:bun": "bun run clean && tsc",
"build:yarn": "yarn clean && tsc",
"start": "ts-node src/bin/index.ts",
"start:pnpm": "pnpm exec ts-node src/bin/index.ts",
"start:bun": "bun run ts-node src/bin/index.ts",
"start:yarn": "yarn ts-node src/bin/index.ts",
"dev": "ts-node-dev --respawn src/bin/index.ts",
"dev:pnpm": "pnpm exec ts-node-dev --respawn src/bin/index.ts",
"dev:bun": "bun run ts-node-dev --respawn src/bin/index.ts",
"dev:yarn": "yarn ts-node-dev --respawn src/bin/index.ts",
"demo": "ts-node src/bin/index.ts test-db.json --delay 500 --routes test-routes.json",
"demo:pnpm": "pnpm exec ts-node src/bin/index.ts test-db.json --delay 500 --routes test-routes.json",
"demo:bun": "bun run ts-node src/bin/index.ts test-db.json --delay 500 --routes test-routes.json",
"demo:yarn": "yarn ts-node src/bin/index.ts test-db.json --delay 500 --routes test-routes.json",
"test": "jest",
"test:pnpm": "pnpm exec jest",
"test:bun": "bun test",
"test:yarn": "yarn jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint \"src/**/*.ts\" --fix",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.ts\"",
"prepublishOnly": "npm run test && npm run build",
"postversion": "git push && git push --tags"
},
"keywords": [
"json",
"server",
"api",
"mock",
"fake",
"rest",
"testing",
"typescript"
],
"author": "webmasterdevlin",
"repository": {
"type": "git",
"url": "https://github.com/webmasterdevlin/json-server.git"
},
"homepage": "https://github.com/webmasterdevlin/json-server",
"bugs": {
"url": "https://github.com/webmasterdevlin/json-server/issues"
},
"license": "MIT",
"devDependencies": {
"@types/body-parser": "^1.19.5",
"@types/cors": "^2.8.17",
"@types/express": "^5.0.1",
"@types/jest": "^29.5.14",
"@types/minimist": "^1.2.5",
"@types/morgan": "^1.9.9",
"@types/node": "^22.13.15",
"@types/serve-static": "^1.15.7",
"@types/supertest": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^8.29.0",
"@typescript-eslint/parser": "^8.29.0",
"eslint": "^9.23.0",
"eslint-config-prettier": "^10.1.1",
"eslint-plugin-prettier": "^5.2.5",
"jest": "^29.7.0",
"prettier": "^3.5.3",
"rimraf": "^5.0.10",
"supertest": "^7.1.0",
"ts-jest": "^29.3.1",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.8.2",
"typescript-eslint": "^8.29.0"
},
"dependencies": {
"body-parser": "^2.2.0",
"chalk": "^4.1.2",
"connect-pause": "^0.1.0",
"cors": "^2.8.5",
"express": "^5.1.0",
"lowdb": "^7.0.1",
"minimist": "^1.2.8",
"morgan": "^1.10.0",
"nanoid": "^3.3.4",
"serve-static": "^2.2.0"
},
"packageManager": "npm@10.2.4 || pnpm@8.15.4 || yarn@4.2.0 || bun@1.0.25",
"engines": {
"node": ">=18.0.0"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js"
}
}
}