@checkdigit/typescript-config 10.1.0 → 10.1.1-PR.92-214a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/builder.mjs +6 -1
- package/dist-mjs/compile.mjs +4 -2
- package/dist-mjs/index.mjs +1 -1
- package/dist-mjs/types/js-temporal-polyfill.mjs +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/types/js-temporal-polyfill.d.ts +3 -0
- package/package.json +1 -93
- package/src/compile.ts +2 -1
- package/src/index.ts +1 -0
- package/src/types/js-temporal-polyfill.ts +5 -0
- package/tsconfig.json +3 -0
package/bin/builder.mjs
CHANGED
|
@@ -58,6 +58,9 @@ var tsconfig_default = {
|
|
|
58
58
|
compilerOptions: {
|
|
59
59
|
target: "esnext",
|
|
60
60
|
moduleResolution: "bundler",
|
|
61
|
+
paths: {
|
|
62
|
+
"@js-temporal/polyfill": ["./src/types/js-temporal-polyfill.ts"]
|
|
63
|
+
},
|
|
61
64
|
sourceMap: true,
|
|
62
65
|
inlineSources: true,
|
|
63
66
|
declaration: true,
|
|
@@ -169,7 +172,7 @@ async function compile_default({
|
|
|
169
172
|
const compilerOptions = typescript.parseJsonConfigFileContent(
|
|
170
173
|
tsconfig_default,
|
|
171
174
|
typescript.sys,
|
|
172
|
-
|
|
175
|
+
workingDirectory
|
|
173
176
|
).options;
|
|
174
177
|
const program = typescript.createProgram(productionSourceFiles, {
|
|
175
178
|
...compilerOptions,
|
|
@@ -222,6 +225,8 @@ async function compile_default({
|
|
|
222
225
|
platform: "node",
|
|
223
226
|
format: "esm",
|
|
224
227
|
treeShaking: true,
|
|
228
|
+
tsconfigRaw: {},
|
|
229
|
+
// we don't need esbuild dealing with typing issues
|
|
225
230
|
write: false,
|
|
226
231
|
metafile: outFile2 !== void 0,
|
|
227
232
|
sourcesContent: false,
|
package/dist-mjs/compile.mjs
CHANGED
|
@@ -82,7 +82,7 @@ async function compile_default({
|
|
|
82
82
|
const compilerOptions = typescript.parseJsonConfigFileContent(
|
|
83
83
|
tsConfigJson,
|
|
84
84
|
typescript.sys,
|
|
85
|
-
|
|
85
|
+
workingDirectory
|
|
86
86
|
).options;
|
|
87
87
|
const program = typescript.createProgram(productionSourceFiles, {
|
|
88
88
|
...compilerOptions,
|
|
@@ -135,6 +135,8 @@ async function compile_default({
|
|
|
135
135
|
platform: "node",
|
|
136
136
|
format: "esm",
|
|
137
137
|
treeShaking: true,
|
|
138
|
+
tsconfigRaw: {},
|
|
139
|
+
// we don't need esbuild dealing with typing issues
|
|
138
140
|
write: false,
|
|
139
141
|
metafile: outFile !== void 0,
|
|
140
142
|
sourcesContent: false,
|
|
@@ -179,4 +181,4 @@ async function compile_default({
|
|
|
179
181
|
export {
|
|
180
182
|
compile_default as default
|
|
181
183
|
};
|
|
182
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
184
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2NvbXBpbGUudHMiXSwKICAibWFwcGluZ3MiOiAiO0FBRUEsU0FBUyxVQUFVLGNBQWM7QUFDakMsU0FBUyxZQUFZLFVBQVU7QUFDL0IsT0FBTyxVQUFVO0FBRWpCLE9BQU8sZ0JBQWdCO0FBQ3ZCLFNBQVMsYUFBK0I7QUFFeEMsT0FBTyxrQkFBa0IsbUJBQW1CLEtBQUssRUFBRSxNQUFNLE9BQU87QUFFaEUsSUFBTSw4QkFBOEI7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBb0hwQyxlQUFlLFNBQVMsV0FBc0M7QUFDNUQsUUFBTSxVQUFVLE1BQU0sR0FBRyxRQUFRLFdBQVcsRUFBRSxlQUFlLEtBQUssQ0FBQztBQUNuRSxRQUFNLFFBQVEsTUFBTSxRQUFRO0FBQUEsSUFDMUIsUUFBUSxJQUFJLE9BQU8sVUFBVTtBQUMzQixZQUFNLFNBQVMsS0FBSyxRQUFRLFdBQVcs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BSSxDQUFDLFVBQVUsa0JBQWtCLE1BQU0sSUFBSSxFQUFFO0FBQUEsRUFDckU7QUFDQSxNQUFJLFNBQVMsU0FBUyxHQUFHO0FBQ3ZCLFVBQU0sSUFBSSxNQUFNLGtCQUFrQixLQUFLLFVBQVUsUUFBUSxDQUFDLEVBQUU7QUFBQSxFQUM5RDtBQUVBLFNBQU87QUFDVDsiLAogICJuYW1lcyI6IFtdCn0K
|
package/dist-mjs/index.mjs
CHANGED
|
@@ -5,4 +5,4 @@ export {
|
|
|
5
5
|
default2 as analyze,
|
|
6
6
|
default3 as compile
|
|
7
7
|
};
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIl0sCiAgIm1hcHBpbmdzIjogIjtBQU1BLFNBQW9CLFdBQVhBLGdCQUEwQjtBQUNuQyxTQUFvQixXQUFYQSxnQkFBMEI7IiwKICAibmFtZXMiOiBbImRlZmF1bHQiXQp9Cg==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFtdLAogICJtYXBwaW5ncyI6ICIiLAogICJuYW1lcyI6IFtdCn0K
|
package/dist-types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,93 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@checkdigit/typescript-config",
|
|
3
|
-
"version": "10.1.0",
|
|
4
|
-
"description": "Check Digit standard Typescript configuration",
|
|
5
|
-
"homepage": "https://github.com/checkdigit/typescript-config#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/checkdigit/typescript-config/issues"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/checkdigit/typescript-config.git"
|
|
12
|
-
},
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"author": "Check Digit, LLC",
|
|
15
|
-
"type": "module",
|
|
16
|
-
"exports": {
|
|
17
|
-
".": {
|
|
18
|
-
"types": "./dist-types/index.d.ts",
|
|
19
|
-
"import": "./dist-mjs/index.mjs",
|
|
20
|
-
"default": "./tsconfig.json"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"bin": {
|
|
24
|
-
"builder": "./bin/builder.mjs"
|
|
25
|
-
},
|
|
26
|
-
"files": [
|
|
27
|
-
"bin",
|
|
28
|
-
"tsconfig.json",
|
|
29
|
-
"src",
|
|
30
|
-
"dist-types",
|
|
31
|
-
"dist-mjs",
|
|
32
|
-
"!src/**/test/**",
|
|
33
|
-
"!src/**/*.test.ts",
|
|
34
|
-
"!src/**/*.spec.ts",
|
|
35
|
-
"!dist-types/**/test/**",
|
|
36
|
-
"!dist-types/**/*.test.d.ts",
|
|
37
|
-
"!dist-types/**/*.spec.d.ts",
|
|
38
|
-
"!dist-mjs/**/test/**",
|
|
39
|
-
"!dist-mjs/**/*.test.mjs",
|
|
40
|
-
"!dist-mjs/**/*.spec.mjs",
|
|
41
|
-
"SECURITY.md"
|
|
42
|
-
],
|
|
43
|
-
"scripts": {
|
|
44
|
-
"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",
|
|
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:dist-mjs": "rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs",
|
|
47
|
-
"build:dist-types": "rimraf dist-types && npx builder --type=types --outDir=dist-types",
|
|
48
|
-
"build:mjs": "rimraf build-mjs && bin/builder.mjs --type=module --outDir=build-mjs",
|
|
49
|
-
"build:mjs-bundle": "rimraf build-mjs-bundle && bin/builder.mjs --type=module --outDir=build-mjs-bundle --entryPoint=index.test.ts --outFile=index.test.mjs",
|
|
50
|
-
"build:mjs-bundle-minify": "rimraf build-mjs-bundle-minify && bin/builder.mjs --type=module --minify --outDir=build-mjs-bundle-minify --entryPoint=index.test.ts --outFile=index.test.mjs",
|
|
51
|
-
"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=index.test.ts --outFile=index.test.mjs --minify",
|
|
52
|
-
"build:types": "rimraf build-types && bin/builder.mjs --type=types --outDir=build-types",
|
|
53
|
-
"ci:compile": "tsc --noEmit --rootDir src",
|
|
54
|
-
"ci:lint": "npm run lint",
|
|
55
|
-
"ci:style": "npm run prettier",
|
|
56
|
-
"ci:test": "npm run build && npm run test:node && npm run test:mjs && npm run test:mjs-bundle && npm run test:mjs-bundle-no-external",
|
|
57
|
-
"lint": "eslint . --max-warnings=0 --concurrency=auto",
|
|
58
|
-
"lint:fix": "eslint . --fix --concurrency=auto",
|
|
59
|
-
"prepare": "",
|
|
60
|
-
"prepublishOnly": "npm run build:builder && npm run build:dist-types && npm run build:dist-mjs",
|
|
61
|
-
"prettier": "prettier --ignore-path .gitignore --list-different .",
|
|
62
|
-
"prettier:fix": "prettier --ignore-path .gitignore --write .",
|
|
63
|
-
"test": "npm run ci:compile && npm run ci:test && npm run ci:lint && npm run ci:style",
|
|
64
|
-
"test:mjs": "node --test build-mjs/test/index.mjs",
|
|
65
|
-
"test:mjs-bundle": "node --test build-mjs-bundle/index.test.mjs",
|
|
66
|
-
"test:mjs-bundle-minify": "node --test build-mjs-bundle-minify/index.test.mjs",
|
|
67
|
-
"test:mjs-bundle-no-external": "node --test build-mjs-bundle-no-external/index.test.mjs",
|
|
68
|
-
"test:node": "node --disable-warning ExperimentalWarning --experimental-strip-types --test-timeout 600000 --test \"src/**/*.spec.ts\""
|
|
69
|
-
},
|
|
70
|
-
"prettier": "@checkdigit/prettier-config",
|
|
71
|
-
"devDependencies": {
|
|
72
|
-
"@checkdigit/prettier-config": "^8.0.0",
|
|
73
|
-
"@eslint/js": "^9.39.4",
|
|
74
|
-
"@eslint/json": "^1.2.0",
|
|
75
|
-
"@eslint/markdown": "^8.0.1",
|
|
76
|
-
"eslint": "^9.39.4",
|
|
77
|
-
"eslint-config-prettier": "^10.1.8",
|
|
78
|
-
"eslint-plugin-import": "^2.32.0",
|
|
79
|
-
"eslint-plugin-yml": "^3.3.2",
|
|
80
|
-
"rimraf": "^6.1.3",
|
|
81
|
-
"typescript-eslint": "^8.59.2"
|
|
82
|
-
},
|
|
83
|
-
"peerDependencies": {
|
|
84
|
-
"@swc-node/register": "1.11.1",
|
|
85
|
-
"@types/node": ">=24",
|
|
86
|
-
"esbuild": "0.28.0",
|
|
87
|
-
"oxc-resolver": "11.13.2",
|
|
88
|
-
"typescript": ">=6.0.3 <7"
|
|
89
|
-
},
|
|
90
|
-
"engines": {
|
|
91
|
-
"node": ">=24.14.1 <25 || >=26"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
1
|
+
{"name":"@checkdigit/typescript-config","version":"10.1.1-PR.92-214a","description":"Check Digit standard Typescript configuration","homepage":"https://github.com/checkdigit/typescript-config#readme","bugs":{"url":"https://github.com/checkdigit/typescript-config/issues"},"repository":{"type":"git","url":"git+https://github.com/checkdigit/typescript-config.git"},"license":"MIT","author":"Check Digit, LLC","type":"module","exports":{".":{"types":"./dist-types/index.d.ts","import":"./dist-mjs/index.mjs","default":"./tsconfig.json"}},"bin":{"builder":"./bin/builder.mjs"},"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"],"scripts":{"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: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:dist-mjs":"rimraf dist-mjs && npx builder --type=module --sourceMap --outDir=dist-mjs && node dist-mjs/index.mjs","build:dist-types":"rimraf dist-types && npx builder --type=types --outDir=dist-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=index.test.ts --outFile=index.test.mjs","build:mjs-bundle-minify":"rimraf build-mjs-bundle-minify && bin/builder.mjs --type=module --minify --outDir=build-mjs-bundle-minify --entryPoint=index.test.ts --outFile=index.test.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=index.test.ts --outFile=index.test.mjs --minify","build:types":"rimraf build-types && bin/builder.mjs --type=types --outDir=build-types","ci:compile":"tsc --noEmit --rootDir src","ci:lint":"npm run lint","ci:style":"npm run prettier","ci:test":"npm run build && npm run test:node && npm run test:mjs && npm run test:mjs-bundle && npm run test:mjs-bundle-no-external","lint":"eslint . --max-warnings=0 --concurrency=auto","lint:fix":"eslint . --fix --concurrency=auto","prepare":"","prepublishOnly":"npm run build:builder && npm run build:dist-types && npm run build:dist-mjs","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","test:mjs":"node --test build-mjs/test/index.mjs","test:mjs-bundle":"node --test build-mjs-bundle/index.test.mjs","test:mjs-bundle-minify":"node --test build-mjs-bundle-minify/index.test.mjs","test:mjs-bundle-no-external":"node --test build-mjs-bundle-no-external/index.test.mjs","test:node":"node --disable-warning ExperimentalWarning --experimental-strip-types --test-timeout 600000 --test \"src/**/*.spec.ts\""},"prettier":"@checkdigit/prettier-config","devDependencies":{"@checkdigit/prettier-config":"^8.0.0","@eslint/js":"^9.39.4","@eslint/json":"^2.0.0","@eslint/markdown":"^8.0.2","@js-temporal/polyfill":"^0.5.1","eslint":"^9.39.4","eslint-config-prettier":"^10.1.8","eslint-plugin-import":"^2.32.0","eslint-plugin-yml":"^3.5.0","rimraf":"^6.1.3","typescript-eslint":"^8.62.0"},"peerDependencies":{"@swc-node/register":"1.11.1","@types/node":">=24","esbuild":"0.28.1","oxc-resolver":"11.13.2","typescript":">=6.0.3 <7"},"engines":{"node":">=24.14.1 <25 || >=26"}}
|
package/src/compile.ts
CHANGED
|
@@ -220,7 +220,7 @@ export default async function ({
|
|
|
220
220
|
const compilerOptions = typescript.parseJsonConfigFileContent(
|
|
221
221
|
tsConfigJson,
|
|
222
222
|
typescript.sys,
|
|
223
|
-
|
|
223
|
+
workingDirectory,
|
|
224
224
|
).options;
|
|
225
225
|
const program = typescript.createProgram(productionSourceFiles, {
|
|
226
226
|
...compilerOptions,
|
|
@@ -279,6 +279,7 @@ export default async function ({
|
|
|
279
279
|
platform: 'node',
|
|
280
280
|
format: 'esm',
|
|
281
281
|
treeShaking: true,
|
|
282
|
+
tsconfigRaw: {}, // we don't need esbuild dealing with typing issues
|
|
282
283
|
write: false,
|
|
283
284
|
metafile: outFile !== undefined,
|
|
284
285
|
sourcesContent: false,
|
package/src/index.ts
CHANGED