@kokimoki/kit 1.5.2 → 1.6.0
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.
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { Plugin } from "vite";
|
2
|
-
import {
|
2
|
+
import { ZodAny } from "zod/v4";
|
3
3
|
export interface KokimokiKitConfig {
|
4
4
|
conceptId: string;
|
5
|
-
schema:
|
5
|
+
schema: ZodAny;
|
6
6
|
deployCodes: {
|
7
7
|
name: string;
|
8
8
|
description: string;
|
@@ -32,7 +32,7 @@ const promises_1 = __importDefault(require("fs/promises"));
|
|
32
32
|
const preprocess_style_1 = require("./preprocess-style");
|
33
33
|
const version_1 = require("./version");
|
34
34
|
const yaml = __importStar(require("yaml"));
|
35
|
-
const
|
35
|
+
const v4_1 = require("zod/v4");
|
36
36
|
function kokimokiKitPlugin(config) {
|
37
37
|
return {
|
38
38
|
name: "kokimoki-kit",
|
@@ -143,7 +143,7 @@ function kokimokiKitPlugin(config) {
|
|
143
143
|
defaultProjectStylePath: config.defaultProjectStylePath,
|
144
144
|
}, null, 2));
|
145
145
|
// write schema
|
146
|
-
const jsonSchema =
|
146
|
+
const jsonSchema = v4_1.z.toJSONSchema(config.schema);
|
147
147
|
await promises_1.default.writeFile(".kokimoki/schema.json", JSON.stringify(jsonSchema, null, 2));
|
148
148
|
// // write schema defaults as json
|
149
149
|
// await fs.writeFile(
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const KOKIMOKI_KIT_VERSION = "1.
|
1
|
+
export declare const KOKIMOKI_KIT_VERSION = "1.6.0";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kokimoki/kit",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.6.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -26,8 +26,7 @@
|
|
26
26
|
"colorjs.io": "^0.5.2",
|
27
27
|
"colornames": "^1.1.1",
|
28
28
|
"yaml": "^2.7.0",
|
29
|
-
"zod": "^3.
|
30
|
-
"zod-to-json-schema": "^3.24.5"
|
29
|
+
"zod": "^3.25.30"
|
31
30
|
},
|
32
31
|
"peerDependencies": {
|
33
32
|
"vite": ">=5"
|