@checkdigit/typescript-config 4.0.0-PR.38-97bd → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +196 -1
package/package.json
CHANGED
@@ -1 +1,196 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"name": "@checkdigit/typescript-config",
|
3
|
+
"version": "4.0.0",
|
4
|
+
"description": "Check Digit standard Typescript configuration",
|
5
|
+
"prettier": "@checkdigit/prettier-config",
|
6
|
+
"engines": {
|
7
|
+
"node": ">=18"
|
8
|
+
},
|
9
|
+
"bin": {
|
10
|
+
"builder": "./bin/builder.mjs"
|
11
|
+
},
|
12
|
+
"peerDependencies": {
|
13
|
+
"@types/node": ">=18",
|
14
|
+
"esbuild": "0.18.11",
|
15
|
+
"typescript": ">=5.1.6 <5.2"
|
16
|
+
},
|
17
|
+
"repository": {
|
18
|
+
"type": "git",
|
19
|
+
"url": "git+https://github.com/checkdigit/typescript-config.git"
|
20
|
+
},
|
21
|
+
"author": "Check Digit, LLC",
|
22
|
+
"license": "MIT",
|
23
|
+
"bugs": {
|
24
|
+
"url": "https://github.com/checkdigit/typescript-config/issues"
|
25
|
+
},
|
26
|
+
"homepage": "https://github.com/checkdigit/typescript-config#readme",
|
27
|
+
"scripts": {
|
28
|
+
"prepublishOnly": "npm run build-builder",
|
29
|
+
"lint:fix": "eslint -f unix --ext .ts,.mts src --fix",
|
30
|
+
"lint": "eslint -f unix --ext .ts,.mts src",
|
31
|
+
"prettier": "prettier --ignore-path .gitignore --list-different .",
|
32
|
+
"prettier:fix": "prettier --ignore-path .gitignore --write .",
|
33
|
+
"test": "npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style",
|
34
|
+
"build-builder": "esbuild src/builder/index.mts --bundle --platform=node --format=esm --external:typescript --external:esbuild --outfile=build-builder/builder.mjs && mkdir -p bin && { echo '#!/usr/bin/env node'; cat build-builder/builder.mjs; } > bin/builder.mjs && chmod +x bin/builder.mjs",
|
35
|
+
"build-types": "rimraf build-types && bin/builder.mjs --type=types --outDir=build-types",
|
36
|
+
"build-cjs": "rimraf build-cjs && bin/builder.mjs --type=commonjs --outDir=build-cjs",
|
37
|
+
"build-cjs-bundle": "rimraf build-cjs-bundle && bin/builder.mjs --type=commonjs --entryPoint=test/index.test.ts --outDir=build-cjs-bundle --outFile=test/index.test.cjs --minify --sourceMap",
|
38
|
+
"build-cjs-bundle-no-external": "rimraf build-cjs-bundle-no-external && bin/builder.mjs --type=commonjs --external=./node_modules/* --entryPoint=test/index.test.ts --outDir=build-cjs-bundle-no-external --outFile=test/index.test.cjs",
|
39
|
+
"build-esm": "rimraf build-esm && bin/builder.mjs --type=module --outDir=build-esm",
|
40
|
+
"build-esm-bundle": "rimraf build-esm-bundle && bin/builder.mjs --type=module --outDir=build-esm-bundle --entryPoint=test/index.test.ts --outFile=test/index.test.mjs",
|
41
|
+
"build-esm-bundle-no-external": "rimraf build-esm-bundle-no-external && bin/builder.mjs --type=module --external=./node_modules/* --outDir=build-esm-bundle-no-external --entryPoint=test/index.test.ts --outFile=test/index.test.mjs --minify",
|
42
|
+
"test-jest-esm": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --coverage=false src/*.mts src/*/*.mts src/*/*/*.mts",
|
43
|
+
"test-jest-cjs": "jest --coverage=false src/*.ts src/*/*.ts src/*/*/*.ts",
|
44
|
+
"test-cjs": "node --test build-cjs/test/index.test.cjs",
|
45
|
+
"test-cjs-bundle": "node --test build-cjs-bundle/test/index.test.cjs",
|
46
|
+
"test-cjs-bundle-no-external": "node --test build-cjs-bundle-no-external/test/index.test.cjs",
|
47
|
+
"test-esm": "node --test build-esm/test/index.test.mjs",
|
48
|
+
"test-esm-bundle": "echo \"node --test build-esm-bundle/test/index.test.mjs\"",
|
49
|
+
"test-esm-bundle-no-external": "node --test build-esm-bundle-no-external/test/index.test.mjs",
|
50
|
+
"ci:test": "npm run test-jest-cjs && npm run test-jest-esm && npm run test-cjs && npm run test-cjs-bundle && npm run test-cjs-bundle-no-external && npm run test-esm && npm run test-esm-bundle && npm run test-esm-bundle-no-external",
|
51
|
+
"ci:compile": "npm run build-builder && npm run build-types && npm run build-cjs && npm run build-cjs-bundle && npm run build-cjs-bundle-no-external && npm run build-esm && npm run build-esm-bundle && npm run build-esm-bundle-no-external",
|
52
|
+
"ci:lint": "npm run lint",
|
53
|
+
"ci:style": "npm run prettier"
|
54
|
+
},
|
55
|
+
"devDependencies": {
|
56
|
+
"@checkdigit/prettier-config": "^4.0.0",
|
57
|
+
"@types/debug": "^4.1.8",
|
58
|
+
"@types/jest": "^29.5.2",
|
59
|
+
"@types/uuid": "^9.0.2",
|
60
|
+
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
61
|
+
"@typescript-eslint/parser": "^5.61.0",
|
62
|
+
"debug": "^4.3.4",
|
63
|
+
"eslint": "^8.44.0",
|
64
|
+
"eslint-config-prettier": "^8.8.0",
|
65
|
+
"get-port": "^7.0.0",
|
66
|
+
"got": "^11.8.6",
|
67
|
+
"jest": "^29.6.0",
|
68
|
+
"rimraf": "^5.0.1",
|
69
|
+
"ts-jest": "^29.1.1",
|
70
|
+
"uuid": "^9.0.0"
|
71
|
+
},
|
72
|
+
"eslintConfig": {
|
73
|
+
"parser": "@typescript-eslint/parser",
|
74
|
+
"plugins": [
|
75
|
+
"@typescript-eslint"
|
76
|
+
],
|
77
|
+
"parserOptions": {
|
78
|
+
"project": "./tsconfig.json"
|
79
|
+
},
|
80
|
+
"extends": [
|
81
|
+
"eslint:all",
|
82
|
+
"plugin:@typescript-eslint/recommended",
|
83
|
+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
84
|
+
"plugin:@typescript-eslint/strict",
|
85
|
+
"prettier"
|
86
|
+
],
|
87
|
+
"rules": {
|
88
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
89
|
+
"capitalized-comments": "off",
|
90
|
+
"one-var": "off",
|
91
|
+
"sort-keys": "off",
|
92
|
+
"sort-imports": "off",
|
93
|
+
"func-style": [
|
94
|
+
"error",
|
95
|
+
"declaration",
|
96
|
+
{
|
97
|
+
"allowArrowFunctions": true
|
98
|
+
}
|
99
|
+
],
|
100
|
+
"no-magic-numbers": [
|
101
|
+
"error",
|
102
|
+
{
|
103
|
+
"ignore": [
|
104
|
+
0,
|
105
|
+
1,
|
106
|
+
2
|
107
|
+
]
|
108
|
+
}
|
109
|
+
],
|
110
|
+
"no-undefined": "off",
|
111
|
+
"no-ternary": "off"
|
112
|
+
},
|
113
|
+
"overrides": [
|
114
|
+
{
|
115
|
+
"files": [
|
116
|
+
"*.spec.mts",
|
117
|
+
"*.test.mts",
|
118
|
+
"*.spec.ts",
|
119
|
+
"*.test.ts"
|
120
|
+
],
|
121
|
+
"rules": {
|
122
|
+
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
123
|
+
"@typescript-eslint/ban-types": "off",
|
124
|
+
"@typescript-eslint/require-await": "off",
|
125
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
126
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
127
|
+
"@typescript-eslint/no-unnecessary-condition": "off",
|
128
|
+
"@typescript-eslint/consistent-indexed-object-style": "off",
|
129
|
+
"@typescript-eslint/no-unused-vars": "off",
|
130
|
+
"@typescript-eslint/no-unsafe-member-access": "off",
|
131
|
+
"line-comment-position": "off",
|
132
|
+
"no-inline-comments": "off",
|
133
|
+
"no-param-reassign": "off",
|
134
|
+
"id-length": "off",
|
135
|
+
"no-magic-numbers": "off",
|
136
|
+
"func-names": "off",
|
137
|
+
"no-duplicate-imports": "off",
|
138
|
+
"symbol-description": "off",
|
139
|
+
"no-invalid-this": "off",
|
140
|
+
"max-lines-per-function": "off",
|
141
|
+
"max-lines": "off",
|
142
|
+
"max-statements": "off",
|
143
|
+
"no-await-in-loop": "off"
|
144
|
+
}
|
145
|
+
}
|
146
|
+
]
|
147
|
+
},
|
148
|
+
"jest": {
|
149
|
+
"moduleFileExtensions": [
|
150
|
+
"js",
|
151
|
+
"mjs",
|
152
|
+
"cjs",
|
153
|
+
"ts",
|
154
|
+
"mts",
|
155
|
+
"json",
|
156
|
+
"node"
|
157
|
+
],
|
158
|
+
"extensionsToTreatAsEsm": [
|
159
|
+
".mts"
|
160
|
+
],
|
161
|
+
"transform": {
|
162
|
+
"^.+\\.mts$": [
|
163
|
+
"ts-jest",
|
164
|
+
{
|
165
|
+
"isolatedModules": true,
|
166
|
+
"diagnostics": false,
|
167
|
+
"useESM": true
|
168
|
+
}
|
169
|
+
],
|
170
|
+
"^.+\\.ts$": [
|
171
|
+
"ts-jest",
|
172
|
+
{
|
173
|
+
"isolatedModules": true,
|
174
|
+
"diagnostics": false,
|
175
|
+
"useESM": false
|
176
|
+
}
|
177
|
+
]
|
178
|
+
},
|
179
|
+
"collectCoverageFrom": [
|
180
|
+
"<rootDir>/src/**",
|
181
|
+
"!<rootDir>/src/**/*.spec.mts",
|
182
|
+
"!<rootDir>/src/**/*.test.mts",
|
183
|
+
"!<rootDir>/src/**/*.spec.ts",
|
184
|
+
"!<rootDir>/src/**/*.test.ts"
|
185
|
+
],
|
186
|
+
"testMatch": [
|
187
|
+
"<rootDir>/src/**/*.spec.ts",
|
188
|
+
"<rootDir>/src/**/*.spec.mts"
|
189
|
+
]
|
190
|
+
},
|
191
|
+
"files": [
|
192
|
+
"bin",
|
193
|
+
"tsconfig.json",
|
194
|
+
"SECURITY.md"
|
195
|
+
]
|
196
|
+
}
|