@xube/kit-generator 0.0.93 → 0.0.94
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/type/validators.js
CHANGED
|
@@ -24,9 +24,11 @@ const generateValidatorsFromZodSchema = (name, schema, rootDir) => {
|
|
|
24
24
|
code: {
|
|
25
25
|
esm: true,
|
|
26
26
|
source: true,
|
|
27
|
+
optimize: true,
|
|
28
|
+
lines: true,
|
|
27
29
|
},
|
|
28
|
-
removeAdditional:
|
|
29
|
-
strict:
|
|
30
|
+
removeAdditional: "all",
|
|
31
|
+
strict: false,
|
|
30
32
|
});
|
|
31
33
|
(0, ajv_formats_1.default)(ajv);
|
|
32
34
|
const validationCode = (0, standalone_1.default)(ajv, ajv.compile((0, zod_to_json_schema_1.default)(schema, `${name.toLowerCase()}JsonSchema`)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-generator",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.94",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"zod-to-ts": "^1.2.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@xube/kit-build": "^0.0.
|
|
31
|
+
"@xube/kit-build": "^0.0.94"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/type/validators.ts
CHANGED
|
@@ -26,10 +26,11 @@ export const generateValidatorsFromZodSchema = (
|
|
|
26
26
|
code: {
|
|
27
27
|
esm: true,
|
|
28
28
|
source: true,
|
|
29
|
-
|
|
29
|
+
optimize: true,
|
|
30
|
+
lines: true,
|
|
30
31
|
},
|
|
31
|
-
removeAdditional:
|
|
32
|
-
strict:
|
|
32
|
+
removeAdditional: "all",
|
|
33
|
+
strict: false,
|
|
33
34
|
});
|
|
34
35
|
|
|
35
36
|
addFormats(ajv);
|
|
@@ -47,7 +48,7 @@ export const generateValidatorsFromZodSchema = (
|
|
|
47
48
|
flag: "w+",
|
|
48
49
|
});
|
|
49
50
|
|
|
50
|
-
console.log(`${name} validator created`)
|
|
51
|
+
console.log(`${name} validator created`);
|
|
51
52
|
|
|
52
53
|
return generatedFilePath;
|
|
53
54
|
};
|