forked from zcong1993/ts-mongoose-code-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
80 lines (80 loc) · 1.8 KB
/
package.json
File metadata and controls
80 lines (80 loc) · 1.8 KB
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
{
"name": "@zcong/ts-mongoose-code-generator",
"version": "1.3.1",
"description": "generate ts model types from mongoose schema",
"main": "./dist/index.js",
"files": [
"dist",
"src"
],
"keywords": [
"mongoose",
"typescript",
"model",
"generator",
"schema"
],
"scripts": {
"build": "tsc",
"test": "npm run lint && npm run jest",
"test:cov": "npm run lint && npm run jest:cov",
"lint": "tslint -p .",
"format": "prettier --write '**/*.{ts,json,md}'",
"jest": "jest --detectOpenHandles --forceExit",
"jest:cov": "jest --coverage --detectOpenHandles --forceExit",
"prepublishOnly": "npm run build"
},
"types": "./dist/index.d.ts",
"author": "zcong1993",
"license": "MIT",
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/mongoose": "^5.7.21",
"@types/node": "^14.0.5",
"husky": "^4.2.5",
"jest": "^26.0.1",
"lint-staged": "^10.2.7",
"mongoose": "^5.9.16",
"prettier": "^2.0.5",
"ts-jest": "^26.0.0",
"tslint": "^6.1.2",
"tslint-config-airbnb": "^5.11.2",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.9.3"
},
"jest": {
"testEnvironment": "node",
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"collectCoverageFrom": [
"src/index.ts",
"src/modelGenerator.ts"
]
},
"lint-staged": {
"*.{js,json,ts}": [
"yarn format",
"git add ."
]
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && lint-staged"
}
},
"dependencies": {
"@zcong/mongoose-schema-parser": "^0.5.0",
"camelcase": "^6.0.0",
"ts-morph": "^7.1.0"
}
}