-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
188 lines (188 loc) · 6.45 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"name": "@mpal9000/ts-core",
"version": "0.1.0",
"description": "Core functionality for TypeScript",
"keywords": [
"core",
"typescript"
],
"author": {
"name": "Michael Palimetakis",
"email": "[email protected]",
"url": "https://github.com/mpal9000"
},
"contributors": [],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/mpal9000/ts-core.git"
},
"private": false,
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"_pinst-enable": "pinst --enable",
"_pinst-disable": "pinst --disable",
"_npm-ci": "npm ci --ignore-scripts",
"_type-coverage-mkdir": "make-dir ./coverage/types",
"_type-coverage-check": "type-coverage",
"_type-coverage-report": "typescript-coverage-report --outputDir ./coverage/types",
"_test-no-coverage": "ava",
"_test": "c8 --reporter html ava",
"_test-coverage-report": "c8 report --reporter text",
"_test-coverage-check": "c8 check-coverage --reporter text",
"pkg-paths-check": "pkg-ok",
"pkg-deps-check": "npm-link-check ./",
"git-status": "node -e \"try { child_process.execFileSync('git', ['status', '--porcelain'], { stdio: ['ignore', 'pipe', 'ignore'], windowsHide: true }).toString() === '' ? process.exit(0) : process.exit(1) } catch { process.exit(1) }\"",
"git-pull-main": "git switch main && git pull --ff-only origin main",
"git-push-main": "git switch main && git push --follow-tags origin main",
"clean-tmp": "del-cli ./.tmp",
"clean-cache": "del-cli ./.cache ./node_modules/.cache",
"clean-dist": "del-cli ./dist",
"clean-coverage": "del-cli ./coverage ./.tmp/c8-output",
"clean": "run-p --continue-on-error --aggregate-output --silent clean-tmp clean-cache clean-dist clean-coverage",
"format-check": "prettier --config ./.prettierrc.json --ignore-path ./.prettierignore --loglevel warn --check \"./**/*\"",
"format-files": "prettier --config ./.prettierrc.json --ignore-path ./.prettierignore --write",
"format": "run-s --silent \"format-files -- {@}\" -- \"./**/*\"",
"type-check": "tsc --project ./tsconfig.json --noEmit",
"type-coverage": "run-s --silent _type-coverage-mkdir _type-coverage-report",
"type-coverage-view": "open-cli ./coverage/types/index.html",
"lint-check": "eslint-config-prettier ./src/index.ts",
"lint": "eslint --config ./.eslintrc.json --ext .ts --format stylish ./src/",
"prelint": "run-s --silent lint-check",
"diagnostics": "run-s --silent type-check _type-coverage-check lint",
"compile-watch": "tsc-watch --build ./tsconfig-dev.json --noClear",
"compile": "tsc --build ./tsconfig.json",
"test-coverage": "run-s --silent _test _test-coverage-report _test-coverage-check",
"test-coverage-view": "open-cli ./coverage/index.html",
"test-no-compile": "run-s --silent lint _test _test-coverage-report _test-coverage-check type-coverage",
"test": "run-s --silent compile test-no-compile",
"test-watch": "run-s --silent \"_test-no-coverage -- --watch\"",
"develop": "run-s --silent \"compile-watch -- --onFirstSuccess \\\"run-p --silent test-watch\\\"\"",
"build": "run-s --silent clean compile",
"postbuild": "run-s --silent pkg-paths-check",
"release": "standard-version --no-verify",
"release-first": "standard-version --first-release --no-verify",
"release-beta": "standard-version --prerelease beta --no-verify",
"release-rc": "standard-version --prerelease rc --no-verify",
"ship": "not-prerelease && npm publish || npm publish --tag next",
"prepublishOnly": "run-s --silent git-pull-main _npm-ci git-status pkg-deps-check format-check build test-no-compile _pinst-disable",
"postpublish": "run-s --silent _pinst-enable",
"postinstall": "husky install .config/husky"
},
"typeCoverage": {
"project": "./tsconfig.json",
"ignoreFiles": [],
"atLeast": 100,
"strict": true,
"ignoreUnread": false,
"ignoreCatch": false,
"suppressError": false,
"detail": true,
"update": false,
"cache": false,
"debug": false
},
"ava": {
"environmentVariables": {},
"extensions": [
"js"
],
"failFast": true,
"failWithoutAssertions": true,
"files": [
"./dist/**/*.test.js"
],
"ignoredByWatcher": [
"./.*/**/*",
"./src/**/*",
"./dist/**/*.d.ts",
"./dist/**/*.map"
],
"nodeArguments": [
"--no-warnings",
"--experimental-json-modules",
"--experimental-specifier-resolution=node",
"--unhandled-rejections=strict"
],
"verbose": true
},
"c8": {
"include": "dist/**/*",
"exclude": [
"*/index.*",
"*/globalThis.*"
],
"reports-dir": "./coverage",
"temp-directory": "./.tmp/c8-output",
"all": true,
"branches": 0,
"lines": 0,
"functions": 0,
"statements": 0
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*": [
"run-s --silent \"format-files -- {@}\" --"
]
},
"standard-version": {
"scripts": {
"prerelease": "run-s --silent git-pull-main _npm-ci git-status pkg-deps-check format-check build test-no-compile",
"posttag": "run-s --silent git-push-main"
},
"skip": {
"changelog": true
}
},
"engines": {
"node": "^15.5.1",
"npm": "^7.3.0"
},
"dependencies": {
"date-fns": "^2.17.0",
"fp-ts": "^2.9.5",
"io-ts": "^2.2.15",
"micro-memoize": "^4.0.9"
},
"peerDependencies": {
"tslib": "^2.1.0"
},
"devDependencies": {
"@commitlint/cli": "^12.0.0",
"@commitlint/config-conventional": "^12.0.0",
"@manuth/typescript-eslint-plugin": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^4.15.2",
"@typescript-eslint/parser": "^4.15.2",
"@typescript-eslint/typescript-estree": "^4.15.2",
"ava": "^3.15.0",
"c8": "^7.6.0",
"del-cli": "^3.0.1",
"eslint": "^7.20.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^5.1.1",
"lint-staged": "^10.5.4",
"make-dir-cli": "^2.0.0",
"not-prerelease": "^1.0.1",
"npm-link-check": "^4.0.0",
"npm-run-all": "^4.1.5",
"open-cli": "^6.0.1",
"pinst": "^2.1.6",
"pkg-ok": "^2.3.1",
"prettier": "^2.2.1",
"standard-version": "^9.1.1",
"ts-plugin-type-coverage": "^2.16.2",
"tsc-watch": "^4.2.9",
"tslib": "^2.1.0",
"type-coverage": "^2.16.2",
"typescript": "^4.2.2",
"typescript-coverage-report": "^0.5.0"
}
}