-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
61 lines (61 loc) · 2.11 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
{
"name": "swagger-typescript-client-generator",
"private": true,
"scripts": {
"clean": "lerna exec --stream -- yarn clean",
"build": "lerna exec --stream -- yarn build",
"pretest": "yarn build",
"test": "yarn test:lib && yarn test:petstore",
"test:lib": "lerna exec --stream -- yarn test",
"test:petstore": "yarn test:petstore:json && yarn test:petstore:yaml",
"test:petstore:json": "swagger-typescript-client-generator bundle PetStore -f ./tests/petstore.json > ./tests/petstore.json.snapshot.ts",
"test:petstore:yaml": "swagger-typescript-client-generator bundle PetStore -f ./tests/petstore.yaml > ./tests/petstore.yaml.snapshot.ts",
"format": "yarn run lint:prettier --write",
"lint": "yarn lint:prettier && yarn run lint:eslint",
"lint:eslint": "eslint ./packages/ --ext=.ts",
"lint:prettier": "prettier -l '**/*.{ts,json,md,yml}' .prettierrc"
},
"workspaces": [
"packages/swagger-typescript-client-generator",
"packages/swagger-typescript-client-generator-runtime"
],
"dependencies": {
"lerna": "^4.0.0"
},
"devDependencies": {
"@types/node": "^16",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
"commit-message-validator": "^1.0.0",
"eslint": "^8.7.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^4.2.3",
"lint-staged": "^12.2.1",
"prettier": "^2.3.0",
"typescript": "^4.3.2"
},
"config": {
"commit-message-validator": {
"pattern": "^(M|merge .*)|(v[0-9]+\\.[0-9]+\\.[0-9]+)|((revert: )?(feat|fix|docs|style|refactor|perf|test|chore)(\\(\\#[0-9]+\\))?: .{1,50})",
"errorMessage": "Commit does not follow semantic messages - please check https://dev.to/maxpou/enhance-your-git-log-with-conventional-commits-3ea4"
}
},
"husky": {
"hooks": {
"commit-msg": "commit-message-validator",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"!(*.d).ts": [
"eslint --fix",
"prettier --write",
"git add "
],
"*.(json|md)": [
"prettier --write",
"git add "
]
}
}