-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
155 lines (155 loc) · 4.28 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"name": "format-package",
"version": "7.0.0",
"description": "Sensible formatting and ordering of package.json",
"license": "MIT",
"engines": {
"node": ">=14.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/camacho/format-package.git"
},
"bugs": {
"url": "https://github.com/camacho/format-package/issues"
},
"homepage": "https://github.com/camacho/format-package#readme",
"author": "Patrick Camacho <[email protected]>",
"contributors": [
"Alexandre Germain (https://gerkindev.github.io/devblog/)",
"Peter Chanthamynavong <[email protected]>"
],
"keywords": [
"format",
"order",
"organize",
"package",
"package.json",
"prettier",
"prettify"
],
"bin": "build/cli/index.js",
"main": "build/lib/index.js",
"files": [
"build",
"CHANGELOG.md",
"LICENSE",
"README.md"
],
"scripts": {
"prebuild": "yarn run clean-build",
"build": "tsc",
"postbuild": "chmod +x ./build/cli/index.js",
"clean": "npm-run-all clean-build clean-packages",
"clean-build": "rimraf ./build",
"clean-packages": "rimraf ./node_modules",
"dev": "ts-node ./src/cli/index.ts",
"docs": "ts-node ./scripts/markdown.ts",
"format": "npm-run-all format-package format-source",
"format-docs": "prettier --write '**/*.md'",
"format-package": "ts-node ./src/cli/index.ts -w package.json",
"format-source": "prettier \"**/**{js,json,ts,yml}\" --write",
"gamut": "npm-run-all reset format lint type-check test build start",
"lint": "eslint . --ext .ts,.js",
"prepare": "husky install",
"prepublishOnly": "yarn gamut",
"reset": "yarn run clean && yarn install",
"start": "node ./build/cli/index.js",
"test": "jest",
"type-check": "tsc --noEmit",
"watch": "ts-node-dev --respawn --transpileOnly"
},
"lint-staged": {
"*.{js,ts}": [
"eslint",
"prettier --write"
],
"*.{yml,md,json}": [
"prettier --write"
],
"**/package.json": [
"yarn format-package"
]
},
"jest": {
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": -10
}
},
"preset": "ts-jest",
"setupFilesAfterEnv": [
"jest-extended",
"<rootDir>/scripts/jest-setup.ts"
],
"snapshotSerializers": [
"jest-snapshot-serializer-ansi"
],
"testPathIgnorePatterns": [
"<rootDir>/build/",
"<rootDir>/node_modules/"
],
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
"jest-watch-master"
]
},
"dependencies": {
"@hapi/joi": "^15.1.1",
"chalk": "^4.1.2",
"cosmiconfig": "^5.2.1",
"fs-extra": "^10.0.0",
"globby": "^11.0.4",
"json5": "^2.2.0",
"resolve-from": "^5.0.0",
"sort-scripts": "^1.0.1",
"yargs": "^17.3.1"
},
"peerDependencies": {
"prettier": "^2.0.0"
},
"devDependencies": {
"@babel/preset-typescript": "^7.16.7",
"@types/cosmiconfig": "^5.0.3",
"@types/globby": "^9.1.0",
"@types/hapi__joi": "^15.0.3",
"@types/jest": "^27.0.3",
"@types/node": "^17.0.5",
"@types/prettier": "^2.4.2",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"execa": "^5.1.1",
"husky": "^7.0.0",
"install-deps-postmerge": "^1.0.5",
"jest": "^27.4.5",
"jest-extended": "^1.2.0",
"jest-snapshot-serializer-ansi": "^1.0.0",
"jest-validate": "^27.4.2",
"jest-watch-master": "^1.0.0",
"jest-watch-typeahead": "^1.0.0",
"lint-staged": "^12.1.4",
"markdown-magic": "^1.0.0",
"markdown-magic-engines": "^1.0.2",
"markdown-magic-install-command": "^1.3.1",
"markdown-magic-package-scripts": "^1.2.1",
"markdown-magic-prettier": "^1.0.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.5.1",
"ts-jest": "^27.1.2",
"ts-node": "^10.4.0",
"typescript": "^4.5.3"
}
}