@checkdigit/typescript-config 7.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/bin/builder.mjs +12 -8
- package/dist-mjs/compile.mjs +13 -9
- package/package.json +5 -5
- package/src/compile.ts +11 -7
package/bin/builder.mjs
CHANGED
@@ -109,16 +109,16 @@ async function compile_default({
|
|
109
109
|
const productionSourceFiles = entryPoint2 === void 0 ? allSourceFiles.filter((file) => file.endsWith(".ts")) : [path.join(inDir2, entryPoint2)];
|
110
110
|
const program = typescript.createProgram(productionSourceFiles, {
|
111
111
|
module: typescript.ModuleKind.ESNext,
|
112
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
113
112
|
target: typescript.ScriptTarget.ESNext,
|
113
|
+
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
114
|
+
sourceMap: true,
|
115
|
+
inlineSources: true,
|
114
116
|
declaration: true,
|
115
|
-
|
116
|
-
noEmitOnError: true,
|
117
|
-
emitDeclarationOnly: type2 === "types",
|
118
|
-
rootDir: inDir2,
|
119
|
-
outDir: outDir2,
|
117
|
+
removeComments: false,
|
120
118
|
noLib: false,
|
121
|
-
|
119
|
+
noEmitOnError: true,
|
120
|
+
skipLibCheck: false,
|
121
|
+
types: ["node"],
|
122
122
|
strict: true,
|
123
123
|
preserveConstEnums: true,
|
124
124
|
noImplicitReturns: true,
|
@@ -137,7 +137,11 @@ async function compile_default({
|
|
137
137
|
allowUnreachableCode: false,
|
138
138
|
noImplicitOverride: true,
|
139
139
|
useUnknownInCatchVariables: true,
|
140
|
-
exactOptionalPropertyTypes: true
|
140
|
+
exactOptionalPropertyTypes: true,
|
141
|
+
noEmit: type2 !== "types",
|
142
|
+
emitDeclarationOnly: type2 === "types",
|
143
|
+
rootDir: inDir2,
|
144
|
+
outDir: outDir2
|
141
145
|
});
|
142
146
|
const declarationFiles = [];
|
143
147
|
const emitResult = program.emit(void 0, (fileName, data) => {
|
package/dist-mjs/compile.mjs
CHANGED
@@ -75,16 +75,16 @@ async function compile_default({
|
|
75
75
|
const productionSourceFiles = entryPoint === void 0 ? allSourceFiles.filter((file) => file.endsWith(".ts")) : [path.join(inDir, entryPoint)];
|
76
76
|
const program = typescript.createProgram(productionSourceFiles, {
|
77
77
|
module: typescript.ModuleKind.ESNext,
|
78
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
79
78
|
target: typescript.ScriptTarget.ESNext,
|
79
|
+
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
80
|
+
sourceMap: true,
|
81
|
+
inlineSources: true,
|
80
82
|
declaration: true,
|
81
|
-
|
82
|
-
noEmitOnError: true,
|
83
|
-
emitDeclarationOnly: type === "types",
|
84
|
-
rootDir: inDir,
|
85
|
-
outDir,
|
83
|
+
removeComments: false,
|
86
84
|
noLib: false,
|
87
|
-
|
85
|
+
noEmitOnError: true,
|
86
|
+
skipLibCheck: false,
|
87
|
+
types: ["node"],
|
88
88
|
strict: true,
|
89
89
|
preserveConstEnums: true,
|
90
90
|
noImplicitReturns: true,
|
@@ -103,7 +103,11 @@ async function compile_default({
|
|
103
103
|
allowUnreachableCode: false,
|
104
104
|
noImplicitOverride: true,
|
105
105
|
useUnknownInCatchVariables: true,
|
106
|
-
exactOptionalPropertyTypes: true
|
106
|
+
exactOptionalPropertyTypes: true,
|
107
|
+
noEmit: type !== "types",
|
108
|
+
emitDeclarationOnly: type === "types",
|
109
|
+
rootDir: inDir,
|
110
|
+
outDir
|
107
111
|
});
|
108
112
|
const declarationFiles = [];
|
109
113
|
const emitResult = program.emit(void 0, (fileName, data) => {
|
@@ -179,4 +183,4 @@ async function compile_default({
|
|
179
183
|
export {
|
180
184
|
compile_default as default
|
181
185
|
};
|
182
|
-
//# sourceMappingURL=data:application/json;base64,
|
186
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2NvbXBpbGUudHMiXSwKICAibWFwcGluZ3MiOiAiO0FBRUEsU0FBUyxVQUFVLGNBQWM7QU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g==
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@checkdigit/typescript-config",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.1",
|
4
4
|
"description": "Check Digit standard Typescript configuration",
|
5
5
|
"prettier": "@checkdigit/prettier-config",
|
6
6
|
"engines": {
|
@@ -19,8 +19,8 @@
|
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
21
|
"@types/node": ">=20.11",
|
22
|
-
"esbuild": "0.20.
|
23
|
-
"typescript": ">=5.4.
|
22
|
+
"esbuild": "0.20.2",
|
23
|
+
"typescript": ">=5.4.3 <5.5.0"
|
24
24
|
},
|
25
25
|
"repository": {
|
26
26
|
"type": "git",
|
@@ -63,8 +63,8 @@
|
|
63
63
|
"@checkdigit/prettier-config": "^5.3.0",
|
64
64
|
"@jest/globals": "^29.7.0",
|
65
65
|
"@types/uuid": "^9.0.8",
|
66
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
67
|
-
"@typescript-eslint/parser": "^7.
|
66
|
+
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
67
|
+
"@typescript-eslint/parser": "^7.3.1",
|
68
68
|
"eslint": "^8.57.0",
|
69
69
|
"eslint-config-prettier": "^9.1.0",
|
70
70
|
"jest": "^29.7.0",
|
package/src/compile.ts
CHANGED
@@ -203,16 +203,16 @@ export default async function ({
|
|
203
203
|
*/
|
204
204
|
const program = typescript.createProgram(productionSourceFiles, {
|
205
205
|
module: typescript.ModuleKind.ESNext,
|
206
|
-
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
207
206
|
target: typescript.ScriptTarget.ESNext,
|
207
|
+
moduleResolution: typescript.ModuleResolutionKind.Bundler,
|
208
|
+
sourceMap: true,
|
209
|
+
inlineSources: true,
|
208
210
|
declaration: true,
|
209
|
-
|
210
|
-
noEmitOnError: true,
|
211
|
-
emitDeclarationOnly: type === 'types',
|
212
|
-
rootDir: inDir,
|
213
|
-
outDir,
|
211
|
+
removeComments: false,
|
214
212
|
noLib: false,
|
215
|
-
|
213
|
+
noEmitOnError: true,
|
214
|
+
skipLibCheck: false,
|
215
|
+
types: ['node'],
|
216
216
|
strict: true,
|
217
217
|
preserveConstEnums: true,
|
218
218
|
noImplicitReturns: true,
|
@@ -232,6 +232,10 @@ export default async function ({
|
|
232
232
|
noImplicitOverride: true,
|
233
233
|
useUnknownInCatchVariables: true,
|
234
234
|
exactOptionalPropertyTypes: true,
|
235
|
+
noEmit: type !== 'types',
|
236
|
+
emitDeclarationOnly: type === 'types',
|
237
|
+
rootDir: inDir,
|
238
|
+
outDir,
|
235
239
|
});
|
236
240
|
const declarationFiles: OutputFile[] = [];
|
237
241
|
const emitResult = program.emit(undefined, (fileName, data) => {
|