@checkdigit/typescript-config 7.1.3-PR.64-d6f5 → 7.1.3-PR.64-9fc8
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 +1 -1
- package/dist-mjs/builder.mjs +2 -2
- package/dist-types/compile.d.ts +1 -1
- package/package.json +1 -1
- package/src/builder.ts +1 -1
- package/src/compile.ts +1 -1
package/bin/builder.mjs
CHANGED
@@ -229,7 +229,7 @@ var {
|
|
229
229
|
sourceMap: { type: "boolean", short: "s", default: false }
|
230
230
|
}
|
231
231
|
});
|
232
|
-
assert3.ok(type === "module" || type === "types", "type must be types or module");
|
232
|
+
assert3.ok(type === "module" || type === "types" || type === "commonjs", "type must be types or module");
|
233
233
|
assert3.ok(inDir !== void 0, "inDir is required");
|
234
234
|
assert3.ok(outDir !== void 0, "outDir is required");
|
235
235
|
var compileResult = await compile_default({
|
package/dist-mjs/builder.mjs
CHANGED
@@ -18,7 +18,7 @@ var {
|
|
18
18
|
sourceMap: { type: "boolean", short: "s", default: false }
|
19
19
|
}
|
20
20
|
});
|
21
|
-
assert.ok(type === "module" || type === "types", "type must be types or module");
|
21
|
+
assert.ok(type === "module" || type === "types" || type === "commonjs", "type must be types or module");
|
22
22
|
assert.ok(inDir !== void 0, "inDir is required");
|
23
23
|
assert.ok(outDir !== void 0, "outDir is required");
|
24
24
|
var compileResult = await compile({
|
@@ -44,4 +44,4 @@ if (compileResult.metafile !== void 0) {
|
|
44
44
|
`${outFile}: src ${analysis.sourceBytes}, node_modules ${analysis.moduleBytes}, total ${analysis.totalBytes}`
|
45
45
|
);
|
46
46
|
}
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
47
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2J1aWxkZXIudHMiXSwKICAibWFwcGluZ3MiOiAiO0FBRUEsU0FBUyxVQUFVLGNBQWM7QUFD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O0FBQUEsRUFDQSxPQUFPLEtBQUssS0FBSyxRQUFRLElBQUksR0FBRyxLQUFLO0FBQUEsRUFDckMsUUFBUSxLQUFLLEtBQUssUUFBUSxJQUFJLEdBQUcsTUFBTTtBQUFBLEVBQ3ZDO0FBQUEsRUFDQTtBQUFBLEVBQ0E7QUFBQSxFQUNBO0FBQUEsRUFDQTtBQUNGLENBQUM7QUFHRCxNQUFNLFFBQVE7QUFBQSxFQUNaLGNBQWMsWUFBWSxJQUFJLE9BQU8sU0FBUztBQUM1QyxVQUFNLEdBQUcsTUFBTSxLQUFLLEtBQUssS0FBSyxRQUFRLEtBQUssSUFBSSxDQUFDLEdBQUcsRUFBRSxXQUFXLEtBQUssQ0FBQztBQUN0RSxVQUFNLEdBQUcsVUFBVSxLQUFLLE1BQU0sS0FBSyxJQUFJO0FBQUEsRUFDekMsQ0FBQztBQUNIO0FBR0EsSUFBSSxjQUFjLGFBQWEsUUFBVztBQUN4QyxRQUFNLFdBQVcsUUFBUSxjQUFjLFFBQVE7QUFDL0MsUUFBTSxHQUFHLFVBQVUsS0FBSyxLQUFLLFFBQVEsZUFBZSxHQUFHLEtBQUssVUFBVSxjQUFjLFVBQVUsUUFBVyxDQUFDLENBQUM7QUFHM0csVUFBUTtBQUFBLElBQ04sR0FBRyxPQUFPLFNBQVMsU0FBUyxXQUFXLGtCQUFrQixTQUFTLFdBQVcsV0FBVyxTQUFTLFVBQVU7QUFBQSxFQUM3RztBQUNGOyIsCiAgIm5hbWVzIjogW10KfQo=
|
package/dist-types/compile.d.ts
CHANGED
@@ -37,7 +37,7 @@ export interface CompileOptions {
|
|
37
37
|
/**
|
38
38
|
* whether to produce Typescript types or ESM code
|
39
39
|
*/
|
40
|
-
type: 'module' | 'types';
|
40
|
+
type: 'module' | 'types' | 'commonjs';
|
41
41
|
/**
|
42
42
|
* the entry point for the bundle, relative to the inDir. if not provided, the files in the inDir will be processed
|
43
43
|
* as individual unbundled files
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@checkdigit/typescript-config","version":"7.1.3-PR.64-
|
1
|
+
{"name":"@checkdigit/typescript-config","version":"7.1.3-PR.64-9fc8","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=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","build:types":"rimraf build-types && bin/builder.mjs --type=types --outDir=build-types","ci:compile":"tsc --noEmit","ci:lint":"npm run lint","ci:style":"npm run prettier","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","lint":"eslint --max-warnings 0 .","lint:fix":"eslint . --fix","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: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"},"prettier":"@checkdigit/prettier-config","jest":{"collectCoverageFrom":["<rootDir>/src/**"],"extensionsToTreatAsEsm":[".ts"],"moduleFileExtensions":["js","mjs","cjs","ts","json","node"],"testMatch":["<rootDir>/src/**/*.spec.ts"],"transform":{"^.+\\.ts$":["ts-jest",{"isolatedModules":true,"diagnostics":false,"useESM":true}]}},"devDependencies":{"@apidevtools/json-schema-ref-parser":"^11.6.4","@checkdigit/prettier-config":"^5.5.0","@eslint/js":"^9.7.0","@jest/globals":"^29.7.0","@types/uuid":"^10.0.0","eslint":"9.7.0","eslint-config-prettier":"^9.1.0","jest":"^29.7.0","rimraf":"^6.0.1","ts-jest":"^29.2.2","typescript-eslint":"^7.16.1","uuid":"^10.0.0"},"peerDependencies":{"@types/node":">=20.14","esbuild":"0.23.0","typescript":">=5.5.3 <5.6.0"},"engines":{"node":">=20.14"},"overrides":{"eslint":"9.7.0"}}
|
package/src/builder.ts
CHANGED
@@ -22,7 +22,7 @@ const {
|
|
22
22
|
},
|
23
23
|
});
|
24
24
|
|
25
|
-
assert.ok(type === 'module' || type === 'types', 'type must be types or module');
|
25
|
+
assert.ok(type === 'module' || type === 'types' || type === 'commonjs', 'type must be types or module');
|
26
26
|
assert.ok(inDir !== undefined, 'inDir is required');
|
27
27
|
assert.ok(outDir !== undefined, 'outDir is required');
|
28
28
|
|
package/src/compile.ts
CHANGED
@@ -74,7 +74,7 @@ export interface CompileOptions {
|
|
74
74
|
/**
|
75
75
|
* whether to produce Typescript types or ESM code
|
76
76
|
*/
|
77
|
-
type: 'module' | 'types';
|
77
|
+
type: 'module' | 'types' | 'commonjs';
|
78
78
|
|
79
79
|
/**
|
80
80
|
* the entry point for the bundle, relative to the inDir. if not provided, the files in the inDir will be processed
|