@checkdigit/typescript-config 7.0.1 → 7.1.0-PR.58-c7d5
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/builder.mjs +1 -2
- package/dist-mjs/compile.mjs +2 -3
- package/package.json +1 -204
- package/src/compile.ts +1 -2
package/bin/builder.mjs
CHANGED
package/dist-mjs/compile.mjs
CHANGED
@@ -83,8 +83,7 @@ async function compile_default({
|
|
83
83
|
removeComments: false,
|
84
84
|
noLib: false,
|
85
85
|
noEmitOnError: true,
|
86
|
-
skipLibCheck:
|
87
|
-
types: ["node"],
|
86
|
+
skipLibCheck: true,
|
88
87
|
strict: true,
|
89
88
|
preserveConstEnums: true,
|
90
89
|
noImplicitReturns: true,
|
@@ -183,4 +182,4 @@ async function compile_default({
|
|
183
182
|
export {
|
184
183
|
compile_default as default
|
185
184
|
};
|
186
|
-
//# sourceMappingURL=data:application/json;base64,
|
185
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2NvbXBpbGUudHMiXSwKICAibWFwcGluZ3MiOiAiO0FBRUEsU0FBUyxVQUFVLGNBQWM7QUFDakMsU0FBUyxZQUFZLFVBQVU7QUFDL0IsT0FBTyxVQUFVO0FBRWpCLE9BQU8sZ0JBQWdCO0FBQ3ZCLFNBQTJCLGFBQWE7QUFFeEMsSUFBTSw4QkFBOEI7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBaUhwQyxlQUFlLFNBQVMsV0FBc0M7QUFDNUQsUUFBTSxVQUFVLE1BQU0sR0FBRyxRQUFRLFdBQVcsRUFBRSxlQUFlLEtBQUssQ0FBQztBQUNuRSxRQUFNLFFBQVEsTUFBTSxRQUFRO0FBQUEsSUFDMUIsUUFBUSxJQUFJLENBQUMsVUFBVTtBQUNyQixZQUFNLFNBQVMsS0FBSyxRQUFRLFdBQVcsTUFBTSxJQUFJO0FBQ2pELGFBQU8sTUFBTSxZQUFZLElBQUksU0FBUyxNQUFNLElBQUk7QU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9BQU87QUFBQSxNQUNsQyxlQUFlO0FBQUEsTUFDZjtBQUFBLE1BQ0EsU0FBUztBQUFBLFFBQ1A7QUFBQSxVQUNFLE1BQU07QUFBQSxVQUNOLE9BQU8sa0JBQWtCLGVBQWU7QUFBQSxRQUMxQztBQUFBLE1BQ0Y7QUFBQSxJQUNGO0FBQUEsRUFDTixDQUFDO0FBRUQsV0FBUyxLQUFLLEdBQUcsWUFBWSxPQUFPLElBQUksQ0FBQyxVQUFVLGtCQUFrQixNQUFNLElBQUksRUFBRSxDQUFDO0FBQ2xGLFdBQVMsS0FBSyxHQUFHLFlBQVksU0FBUyxJQUFJLENBQUMsWUFBWSxvQkFBb0IsUUFBUSxJQUFJLEVBQUUsQ0FBQztBQUMxRixNQUFJLFNBQVMsU0FBUyxHQUFHO0FBQ3ZCLFVBQU0sSUFBSSxNQUFNLGtCQUFrQixLQUFLLFVBQVUsUUFBUSxDQUFDLEVBQUU7QUFBQSxFQUM5RDtBQUVBLFNBQU87QUFDVDsiLAogICJuYW1lcyI6IFtdCn0K
|
package/package.json
CHANGED
@@ -1,204 +1 @@
|
|
1
|
-
{
|
2
|
-
"name": "@checkdigit/typescript-config",
|
3
|
-
"version": "7.0.1",
|
4
|
-
"description": "Check Digit standard Typescript configuration",
|
5
|
-
"prettier": "@checkdigit/prettier-config",
|
6
|
-
"engines": {
|
7
|
-
"node": ">=20.11"
|
8
|
-
},
|
9
|
-
"type": "module",
|
10
|
-
"exports": {
|
11
|
-
".": {
|
12
|
-
"types": "./dist-types/index.d.ts",
|
13
|
-
"import": "./dist-mjs/index.mjs",
|
14
|
-
"default": "./tsconfig.json"
|
15
|
-
}
|
16
|
-
},
|
17
|
-
"bin": {
|
18
|
-
"builder": "./bin/builder.mjs"
|
19
|
-
},
|
20
|
-
"peerDependencies": {
|
21
|
-
"@types/node": ">=20.11",
|
22
|
-
"esbuild": "0.20.2",
|
23
|
-
"typescript": ">=5.4.3 <5.5.0"
|
24
|
-
},
|
25
|
-
"repository": {
|
26
|
-
"type": "git",
|
27
|
-
"url": "git+https://github.com/checkdigit/typescript-config.git"
|
28
|
-
},
|
29
|
-
"author": "Check Digit, LLC",
|
30
|
-
"license": "MIT",
|
31
|
-
"bugs": {
|
32
|
-
"url": "https://github.com/checkdigit/typescript-config/issues"
|
33
|
-
},
|
34
|
-
"homepage": "https://github.com/checkdigit/typescript-config#readme",
|
35
|
-
"scripts": {
|
36
|
-
"prepublishOnly": "npm run build:builder && npm run build:dist-types && npm run build:dist-mjs",
|
37
|
-
"lint:fix": "eslint --ignore-path .gitignore . --fix",
|
38
|
-
"lint": "eslint --max-warnings 0 --ignore-path .gitignore .",
|
39
|
-
"prettier": "prettier --ignore-path .gitignore --list-different .",
|
40
|
-
"prettier:fix": "prettier --ignore-path .gitignore --write .",
|
41
|
-
"test": "npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style",
|
42
|
-
"build": "npm run build:builder && npm run build:types && npm run build:mjs && npm run build:mjs-bundle && npm run build:mjs-bundle-minify && npm run build:mjs-bundle-no-external",
|
43
|
-
"build:dist-types": "rimraf dist-types && npx builder --type=types --outDir=dist-types",
|
44
|
-
"build:dist-mjs": "rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs",
|
45
|
-
"build:builder": "esbuild src/builder.ts --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",
|
46
|
-
"build:types": "rimraf build-types && bin/builder.mjs --type=types --outDir=build-types",
|
47
|
-
"build:mjs": "rimraf build-mjs && bin/builder.mjs --type=module --outDir=build-mjs",
|
48
|
-
"build:mjs-bundle": "rimraf build-mjs-bundle && bin/builder.mjs --type=module --outDir=build-mjs-bundle --entryPoint=test/index.ts --outFile=test/index.mjs",
|
49
|
-
"build:mjs-bundle-minify": "rimraf build-mjs-bundle-minify && bin/builder.mjs --type=module --minify --outDir=build-mjs-bundle-minify --entryPoint=test/index.ts --outFile=test/index.mjs",
|
50
|
-
"build:mjs-bundle-no-external": "rimraf build-mjs-bundle-no-external && bin/builder.mjs --type=module --external=./node_modules/* --outDir=build-mjs-bundle-no-external --entryPoint=test/index.ts --outFile=test/index.mjs --minify",
|
51
|
-
"test:jest-mjs": "NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false",
|
52
|
-
"test:mjs": "node --test build-mjs/test/index.mjs",
|
53
|
-
"test:mjs-bundle": "node --test build-mjs-bundle/test/index.mjs",
|
54
|
-
"test:mjs-bundle-minify": "node --test build-mjs-bundle-minify/test/index.mjs",
|
55
|
-
"test:mjs-bundle-no-external": "node --test build-mjs-bundle-no-external/test/index.mjs",
|
56
|
-
"ci:test": "npm run build && npm run test:jest-mjs && npm run test:mjs && npm run test:mjs-bundle && npm run test:mjs-bundle-no-external",
|
57
|
-
"ci:compile": "tsc --noEmit",
|
58
|
-
"ci:lint": "npm run lint",
|
59
|
-
"ci:style": "npm run prettier"
|
60
|
-
},
|
61
|
-
"devDependencies": {
|
62
|
-
"@apidevtools/json-schema-ref-parser": "^11.5.4",
|
63
|
-
"@checkdigit/prettier-config": "^5.3.0",
|
64
|
-
"@jest/globals": "^29.7.0",
|
65
|
-
"@types/uuid": "^9.0.8",
|
66
|
-
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
67
|
-
"@typescript-eslint/parser": "^7.3.1",
|
68
|
-
"eslint": "^8.57.0",
|
69
|
-
"eslint-config-prettier": "^9.1.0",
|
70
|
-
"jest": "^29.7.0",
|
71
|
-
"rimraf": "^5.0.5",
|
72
|
-
"ts-jest": "^29.1.2",
|
73
|
-
"uuid": "^9.0.1"
|
74
|
-
},
|
75
|
-
"eslintConfig": {
|
76
|
-
"parser": "@typescript-eslint/parser",
|
77
|
-
"plugins": [
|
78
|
-
"@typescript-eslint"
|
79
|
-
],
|
80
|
-
"parserOptions": {
|
81
|
-
"project": "./tsconfig.json"
|
82
|
-
},
|
83
|
-
"extends": [
|
84
|
-
"eslint:all",
|
85
|
-
"plugin:@typescript-eslint/recommended",
|
86
|
-
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
87
|
-
"plugin:@typescript-eslint/strict",
|
88
|
-
"prettier"
|
89
|
-
],
|
90
|
-
"rules": {
|
91
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "error",
|
92
|
-
"capitalized-comments": "off",
|
93
|
-
"one-var": "off",
|
94
|
-
"func-names": "off",
|
95
|
-
"sort-keys": "off",
|
96
|
-
"sort-imports": "off",
|
97
|
-
"max-lines": [
|
98
|
-
"error",
|
99
|
-
{
|
100
|
-
"max": 500,
|
101
|
-
"skipBlankLines": true,
|
102
|
-
"skipComments": true
|
103
|
-
}
|
104
|
-
],
|
105
|
-
"func-style": [
|
106
|
-
"error",
|
107
|
-
"declaration",
|
108
|
-
{
|
109
|
-
"allowArrowFunctions": true
|
110
|
-
}
|
111
|
-
],
|
112
|
-
"no-magic-numbers": [
|
113
|
-
"error",
|
114
|
-
{
|
115
|
-
"ignore": [
|
116
|
-
0,
|
117
|
-
1,
|
118
|
-
2
|
119
|
-
]
|
120
|
-
}
|
121
|
-
],
|
122
|
-
"no-undefined": "off",
|
123
|
-
"no-ternary": "off"
|
124
|
-
},
|
125
|
-
"overrides": [
|
126
|
-
{
|
127
|
-
"files": [
|
128
|
-
"*.spec.ts",
|
129
|
-
"*.test.ts"
|
130
|
-
],
|
131
|
-
"rules": {
|
132
|
-
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
133
|
-
"@typescript-eslint/ban-types": "off",
|
134
|
-
"@typescript-eslint/require-await": "off",
|
135
|
-
"@typescript-eslint/consistent-type-definitions": "off",
|
136
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
137
|
-
"@typescript-eslint/no-unnecessary-condition": "off",
|
138
|
-
"@typescript-eslint/consistent-indexed-object-style": "off",
|
139
|
-
"@typescript-eslint/no-unused-vars": "off",
|
140
|
-
"@typescript-eslint/no-unsafe-member-access": "off",
|
141
|
-
"line-comment-position": "off",
|
142
|
-
"no-fallthrough": "off",
|
143
|
-
"no-inline-comments": "off",
|
144
|
-
"no-param-reassign": "off",
|
145
|
-
"id-length": "off",
|
146
|
-
"no-magic-numbers": "off",
|
147
|
-
"no-duplicate-imports": "off",
|
148
|
-
"symbol-description": "off",
|
149
|
-
"no-invalid-this": "off",
|
150
|
-
"max-lines-per-function": "off",
|
151
|
-
"max-lines": "off",
|
152
|
-
"max-statements": "off",
|
153
|
-
"no-await-in-loop": "off"
|
154
|
-
}
|
155
|
-
}
|
156
|
-
]
|
157
|
-
},
|
158
|
-
"jest": {
|
159
|
-
"moduleFileExtensions": [
|
160
|
-
"js",
|
161
|
-
"mjs",
|
162
|
-
"cjs",
|
163
|
-
"ts",
|
164
|
-
"json",
|
165
|
-
"node"
|
166
|
-
],
|
167
|
-
"extensionsToTreatAsEsm": [
|
168
|
-
".ts"
|
169
|
-
],
|
170
|
-
"transform": {
|
171
|
-
"^.+\\.ts$": [
|
172
|
-
"ts-jest",
|
173
|
-
{
|
174
|
-
"isolatedModules": true,
|
175
|
-
"diagnostics": false,
|
176
|
-
"useESM": true
|
177
|
-
}
|
178
|
-
]
|
179
|
-
},
|
180
|
-
"collectCoverageFrom": [
|
181
|
-
"<rootDir>/src/**"
|
182
|
-
],
|
183
|
-
"testMatch": [
|
184
|
-
"<rootDir>/src/**/*.spec.ts"
|
185
|
-
]
|
186
|
-
},
|
187
|
-
"files": [
|
188
|
-
"bin",
|
189
|
-
"tsconfig.json",
|
190
|
-
"src",
|
191
|
-
"dist-types",
|
192
|
-
"dist-mjs",
|
193
|
-
"!src/**/test/**",
|
194
|
-
"!src/**/*.test.ts",
|
195
|
-
"!src/**/*.spec.ts",
|
196
|
-
"!dist-types/**/test/**",
|
197
|
-
"!dist-types/**/*.test.d.ts",
|
198
|
-
"!dist-types/**/*.spec.d.ts",
|
199
|
-
"!dist-mjs/**/test/**",
|
200
|
-
"!dist-mjs/**/*.test.mjs",
|
201
|
-
"!dist-mjs/**/*.spec.mjs",
|
202
|
-
"SECURITY.md"
|
203
|
-
]
|
204
|
-
}
|
1
|
+
{"name":"@checkdigit/typescript-config","version":"7.1.0-PR.58-c7d5","description":"Check Digit standard Typescript configuration","prettier":"@checkdigit/prettier-config","engines":{"node":">=20.11"},"type":"module","exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-mjs/index.mjs","default":"./tsconfig.json"}},"bin":{"builder":"./bin/builder.mjs"},"peerDependencies":{"@types/node":">=20.11","esbuild":"0.20.2","typescript":"5.5.0-beta"},"repository":{"type":"git","url":"git+https://github.com/checkdigit/typescript-config.git"},"author":"Check Digit, LLC","license":"MIT","bugs":{"url":"https://github.com/checkdigit/typescript-config/issues"},"homepage":"https://github.com/checkdigit/typescript-config#readme","scripts":{"prepublishOnly":"npm run build:builder && npm run build:dist-types && npm run build:dist-mjs","lint:fix":"eslint --ignore-path .gitignore . --fix","lint":"eslint --max-warnings 0 --ignore-path .gitignore .","prettier":"prettier --ignore-path .gitignore --list-different .","prettier:fix":"prettier --ignore-path .gitignore --write .","test":"npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style","build":"npm run build:builder && npm run build:types && npm run build:mjs && npm run build:mjs-bundle && npm run build:mjs-bundle-minify && npm run build:mjs-bundle-no-external","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-types","build:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","build:builder":"esbuild src/builder.ts --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","build:types":"rimraf build-types && bin/builder.mjs --type=types --outDir=build-types","build:mjs":"rimraf build-mjs && bin/builder.mjs --type=module --outDir=build-mjs","build:mjs-bundle":"rimraf build-mjs-bundle && bin/builder.mjs --type=module --outDir=build-mjs-bundle --entryPoint=test/index.ts --outFile=test/index.mjs","build:mjs-bundle-minify":"rimraf build-mjs-bundle-minify && bin/builder.mjs --type=module --minify --outDir=build-mjs-bundle-minify --entryPoint=test/index.ts --outFile=test/index.mjs","build:mjs-bundle-no-external":"rimraf build-mjs-bundle-no-external && bin/builder.mjs --type=module --external=./node_modules/* --outDir=build-mjs-bundle-no-external --entryPoint=test/index.ts --outFile=test/index.mjs --minify","test:jest-mjs":"NODE_OPTIONS=\"--disable-warning ExperimentalWarning --experimental-vm-modules\" jest --coverage=false","test:mjs":"node --test build-mjs/test/index.mjs","test:mjs-bundle":"node --test build-mjs-bundle/test/index.mjs","test:mjs-bundle-minify":"node --test build-mjs-bundle-minify/test/index.mjs","test:mjs-bundle-no-external":"node --test build-mjs-bundle-no-external/test/index.mjs","ci:test":"npm run build && npm run test:jest-mjs && npm run test:mjs && npm run test:mjs-bundle && npm run test:mjs-bundle-no-external","ci:compile":"tsc --noEmit","ci:lint":"npm run lint","ci:style":"npm run prettier"},"devDependencies":{"@apidevtools/json-schema-ref-parser":"^11.6.1","@checkdigit/prettier-config":"^5.3.0","@jest/globals":"^29.7.0","@types/uuid":"^9.0.8","@typescript-eslint/eslint-plugin":"^7.7.1","@typescript-eslint/parser":"^7.7.1","eslint":"^8.57.0","eslint-config-prettier":"^9.1.0","jest":"^29.7.0","rimraf":"^5.0.5","ts-jest":"^29.1.2","uuid":"^9.0.1"},"eslintConfig":{"parser":"@typescript-eslint/parser","plugins":["@typescript-eslint"],"parserOptions":{"project":"./tsconfig.json"},"extends":["eslint:all","plugin:@typescript-eslint/recommended","plugin:@typescript-eslint/recommended-requiring-type-checking","plugin:@typescript-eslint/strict","prettier"],"rules":{"@typescript-eslint/non-nullable-type-assertion-style":"error","capitalized-comments":"off","one-var":"off","func-names":"off","sort-keys":"off","sort-imports":"off","max-lines":["error",{"max":500,"skipBlankLines":true,"skipComments":true}],"func-style":["error","declaration",{"allowArrowFunctions":true}],"no-magic-numbers":["error",{"ignore":[0,1,2]}],"no-undefined":"off","no-ternary":"off"},"overrides":[{"files":["*.spec.ts","*.test.ts"],"rules":{"@typescript-eslint/non-nullable-type-assertion-style":"off","@typescript-eslint/ban-types":"off","@typescript-eslint/require-await":"off","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/ban-ts-comment":"off","@typescript-eslint/no-unnecessary-condition":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/no-unsafe-member-access":"off","line-comment-position":"off","no-fallthrough":"off","no-inline-comments":"off","no-param-reassign":"off","id-length":"off","no-magic-numbers":"off","no-duplicate-imports":"off","symbol-description":"off","no-invalid-this":"off","max-lines-per-function":"off","max-lines":"off","max-statements":"off","no-await-in-loop":"off"}}]},"jest":{"moduleFileExtensions":["js","mjs","cjs","ts","json","node"],"extensionsToTreatAsEsm":[".ts"],"transform":{"^.+\\.ts$":["ts-jest",{"isolatedModules":true,"diagnostics":false,"useESM":true}]},"collectCoverageFrom":["<rootDir>/src/**"],"testMatch":["<rootDir>/src/**/*.spec.ts"]},"files":["bin","tsconfig.json","src","dist-types","dist-mjs","!src/**/test/**","!src/**/*.test.ts","!src/**/*.spec.ts","!dist-types/**/test/**","!dist-types/**/*.test.d.ts","!dist-types/**/*.spec.d.ts","!dist-mjs/**/test/**","!dist-mjs/**/*.test.mjs","!dist-mjs/**/*.spec.mjs","SECURITY.md"],"overrides":{"typescript":"5.5.0-beta"}}
|
package/src/compile.ts
CHANGED