@power-plant/schema 0.0.78 → 0.0.80
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/dist/index.cjs +4 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.mjs +4 -3
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -1006,7 +1006,7 @@ async function extractTSType(input, options = {}) {
|
|
|
1006
1006
|
const cwd = options.cwd || process.cwd();
|
|
1007
1007
|
try {
|
|
1008
1008
|
options.logger?.debug?.(`Generating JSON schema for bundled "${filePath}" using the type "${exportName}"`);
|
|
1009
|
-
const result = await (0, esbuild.build)({
|
|
1009
|
+
const result = await (0, esbuild.build)((0, defu.default)({
|
|
1010
1010
|
platform: "node",
|
|
1011
1011
|
format: "esm",
|
|
1012
1012
|
logLevel: "silent",
|
|
@@ -1014,16 +1014,17 @@ async function extractTSType(input, options = {}) {
|
|
|
1014
1014
|
write: false,
|
|
1015
1015
|
sourcemap: false,
|
|
1016
1016
|
splitting: false,
|
|
1017
|
+
keepNames: true
|
|
1018
|
+
}, options, {
|
|
1017
1019
|
treeShaking: true,
|
|
1018
1020
|
bundle: true,
|
|
1019
|
-
keepNames: true,
|
|
1020
1021
|
metafile: false,
|
|
1021
1022
|
minify: true,
|
|
1022
1023
|
legalComments: "none",
|
|
1023
1024
|
target: "es2022",
|
|
1024
1025
|
absWorkingDir: cwd,
|
|
1025
1026
|
plugins: [createDeepkitPlugin(options)]
|
|
1026
|
-
});
|
|
1027
|
+
}));
|
|
1027
1028
|
if (result.errors.length > 0) throw new Error(result.errors.map((error) => error.text).join(", "));
|
|
1028
1029
|
const bundled = result.outputFiles?.filter(Boolean)[0]?.text;
|
|
1029
1030
|
if (!(0, _stryke_type_checks.isSetString)(bundled)) throw new Error(`No output files generated for "${filePath}". Please check the configuration and try again.`);
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;iBAyGgB,yBACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBAqHc,6BACd,MAAM,YACN,UAAU,YACV;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/compatibility.ts","../src/extract.ts","../src/helpers.ts","../src/metadata.ts","../src/type-checks.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;iBAyGgB,yBACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBAqHc,6BACd,MAAM,YACN,UAAU,YACV;;;;;;;;;iBC0Dc,iBAAiB,QAAQ,aAAa;;;;iBAgMtC,YACd,SAAS,qBACT,OAAO;;;;iBA8CO,kBAAkB,YAAY,OAAO;;;;;;;iBAcrC,kBAAkB,kBAAkB;;;;;;;;iBAoCpC,uBACd,OAAO,qBACN;;;;;;;iBA4Ba,eAAe,OAAO,eAAe;;;;;;;;;iBAsB/B,cACpB,OAAO,oBACP,UAAU,sBACT,QAAQ;;;;;;;;;iBAqCK,cACd,SAAS,qBACT,OAAO,qBACN;;;;;;;;;;;;iBA8Ja,oBACd,SAAS;EAAuB,KAAK;IACpC;;;;;;;;;;;iBAuEmB,cACpB,OAAO,oBACP,UAAS,wBAAwB,SAAS,qBACzC,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmJW,wBAAwB,aAC5C,OAAO,cACP,UAAS,2BAA2B,SACnC,QAAQ,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoKb,QAAQ,aAC5B,OAAO,aAAa,QACpB,UAAS,2BAA2B,SACnC,QAAQ,iBAAiB;;;KC9pChB,oBAAoB;EAC9B;EACA;EACA;;;;;;;;;;;;iBAac,cAAc,OAAO,iBAAiB,aAAa;;;;;;;;;;;iBAmBnD,oBACd,OAAO,iBAAiB,aACvB;;;;;;;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
const cwd = options.cwd || process.cwd();
|
|
1003
1003
|
try {
|
|
1004
1004
|
options.logger?.debug?.(`Generating JSON schema for bundled "${filePath}" using the type "${exportName}"`);
|
|
1005
|
-
const result = await build({
|
|
1005
|
+
const result = await build(defu({
|
|
1006
1006
|
platform: "node",
|
|
1007
1007
|
format: "esm",
|
|
1008
1008
|
logLevel: "silent",
|
|
@@ -1010,16 +1010,17 @@ async function extractTSType(input, options = {}) {
|
|
|
1010
1010
|
write: false,
|
|
1011
1011
|
sourcemap: false,
|
|
1012
1012
|
splitting: false,
|
|
1013
|
+
keepNames: true
|
|
1014
|
+
}, options, {
|
|
1013
1015
|
treeShaking: true,
|
|
1014
1016
|
bundle: true,
|
|
1015
|
-
keepNames: true,
|
|
1016
1017
|
metafile: false,
|
|
1017
1018
|
minify: true,
|
|
1018
1019
|
legalComments: "none",
|
|
1019
1020
|
target: "es2022",
|
|
1020
1021
|
absWorkingDir: cwd,
|
|
1021
1022
|
plugins: [createDeepkitPlugin(options)]
|
|
1022
|
-
});
|
|
1023
|
+
}));
|
|
1023
1024
|
if (result.errors.length > 0) throw new Error(result.errors.map((error) => error.text).join(", "));
|
|
1024
1025
|
const bundled = result.outputFiles?.filter(Boolean)[0]?.text;
|
|
1025
1026
|
if (!isSetString$1(bundled)) throw new Error(`No output files generated for "${filePath}". Please check the configuration and try again.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@power-plant/schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Power Plant utility package to help managing schemas.",
|
|
6
6
|
"keywords": [
|
|
@@ -169,9 +169,9 @@
|
|
|
169
169
|
},
|
|
170
170
|
"devDependencies": {
|
|
171
171
|
"@deepkit/type-compiler": "1.0.19",
|
|
172
|
-
"@powerlines/plugin-tsdown": "^0.1.
|
|
172
|
+
"@powerlines/plugin-tsdown": "^0.1.591",
|
|
173
173
|
"@types/node": "^25.9.5",
|
|
174
|
-
"powerlines": "^0.47.
|
|
174
|
+
"powerlines": "^0.47.190",
|
|
175
175
|
"valibot": "^1.4.2",
|
|
176
176
|
"zod": "^4.4.3"
|
|
177
177
|
},
|
|
@@ -185,5 +185,5 @@
|
|
|
185
185
|
},
|
|
186
186
|
"publishConfig": { "access": "public" },
|
|
187
187
|
"inlinedDependencies": { "@deepkit/type-compiler": "1.0.19" },
|
|
188
|
-
"gitHead": "
|
|
188
|
+
"gitHead": "c8eff7b5be3c90f734e28edd88d6d7940265947e"
|
|
189
189
|
}
|