@fabricorg/gen-prisma 0.2.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add reviewed Prisma schema, federation GraphQL, and SDUI data-shape generator adapters.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - Updated dependencies
13
+ - Updated dependencies
14
+ - @fabricorg/platform@0.11.0
15
+ - @fabricorg/compiler@0.2.0
16
+
17
+ ## 0.1.0
18
+
19
+ - Add reference Prisma schema and review-only compatibility-report generation.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fabric
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # `@fabricorg/gen-prisma`
2
+
3
+ Reference PostgreSQL/Prisma target. It emits a schema plus a compatibility report; it never executes
4
+ or claims an automatic migration. Generated domain models are tenant/space scoped.
5
+
package/dist/index.cjs ADDED
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ prismaGenerator: () => prismaGenerator
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var scalar = (schema) => {
27
+ const type = Array.isArray(schema.type) ? schema.type.find((item) => item !== "null") : schema.type;
28
+ if (type === "string") return "String";
29
+ if (type === "integer") return "Int";
30
+ if (type === "number") return "Float";
31
+ if (type === "boolean") return "Boolean";
32
+ if (type === "array" || type === "object") return "Json";
33
+ return "Json";
34
+ };
35
+ var pascal = (value) => value.split(/[-._/]/).filter(Boolean).map((part) => part[0]?.toUpperCase() + part.slice(1)).join("");
36
+ var identifier = (value) => {
37
+ const normalized = value.replace(/[^a-zA-Z0-9_]/g, "_");
38
+ return /^[a-zA-Z]/.test(normalized) ? normalized : `field_${normalized}`;
39
+ };
40
+ var prismaGenerator = {
41
+ name: "@fabricorg/gen-prisma",
42
+ version: "0.1.0",
43
+ generate(ir) {
44
+ const models = ir.modules.flatMap((module2) => module2.objectTypes.map((objectType) => {
45
+ const required = new Set(objectType.schema?.required ?? []);
46
+ const fields = Object.entries(objectType.schema?.properties ?? {}).filter(([name]) => !["id", "tenantId", "spaceId"].includes(name)).map(([name, schema]) => ` ${identifier(name)} ${scalar(schema)}${required.has(name) ? "" : "?"}${identifier(name) === name ? "" : ` @map("${name}")`}`);
47
+ const relations = (objectType.relations ?? []).map((relation) => ` ${relation.name}Ids String${relation.cardinality === "many" ? "[]" : relation.required ? "" : "?"} // ${relation.semantics} -> ${relation.target}`);
48
+ return [`model ${pascal(module2.namespace)}${objectType.type} {`, " id String @id", " tenantId String", " spaceId String", ...fields, ...relations, "", " @@index([tenantId, spaceId])", ` @@map("${module2.namespace}_${objectType.type}")`, "}"].join("\n");
49
+ }));
50
+ const content = [`// Generated by ${prismaGenerator.name}@${prismaGenerator.version}`, `// Manifest digest: ${ir.manifestDigest}`, 'generator client {\n provider = "prisma-client-js"\n}', 'datasource db {\n provider = "postgresql"\n url = env("DATABASE_URL")\n}', "", ...models, ""].join("\n\n");
51
+ return [{ path: "prisma/schema.prisma", content }, { path: "prisma/compatibility.json", content: JSON.stringify({ manifestDigest: ir.manifestDigest, automaticMigration: false, reviewRequired: true }, null, 2) }];
52
+ }
53
+ };
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ prismaGenerator
57
+ });
58
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["import type { GeneratorTarget } from \"@fabricorg/compiler\";\nimport type { PortableJsonSchema } from \"@fabricorg/platform\";\n\nconst scalar = (schema: PortableJsonSchema): string => {\n\tconst type = Array.isArray(schema.type) ? schema.type.find((item) => item !== \"null\") : schema.type;\n\tif (type === \"string\") return \"String\";\n\tif (type === \"integer\") return \"Int\";\n\tif (type === \"number\") return \"Float\";\n\tif (type === \"boolean\") return \"Boolean\";\n\tif (type === \"array\" || type === \"object\") return \"Json\";\n\treturn \"Json\";\n};\nconst pascal = (value: string): string => value.split(/[-._/]/).filter(Boolean).map((part) => part[0]?.toUpperCase() + part.slice(1)).join(\"\");\nconst identifier = (value: string): string => {\n\tconst normalized = value.replace(/[^a-zA-Z0-9_]/g, \"_\");\n\treturn /^[a-zA-Z]/.test(normalized) ? normalized : `field_${normalized}`;\n};\n\nexport const prismaGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-prisma\", version: \"0.1.0\",\n\tgenerate(ir) {\n\t\tconst models = ir.modules.flatMap((module) => module.objectTypes.map((objectType) => {\n\t\t\tconst required = new Set(objectType.schema?.required ?? []);\n\t\t\tconst fields = Object.entries(objectType.schema?.properties ?? {})\n\t\t\t\t.filter(([name]) => ![\"id\", \"tenantId\", \"spaceId\"].includes(name))\n\t\t\t\t.map(([name, schema]) => ` ${identifier(name)} ${scalar(schema)}${required.has(name) ? \"\" : \"?\"}${identifier(name) === name ? \"\" : ` @map(\"${name}\")`}`);\n\t\t\tconst relations = (objectType.relations ?? []).map((relation) => ` ${relation.name}Ids String${relation.cardinality === \"many\" ? \"[]\" : relation.required ? \"\" : \"?\"} // ${relation.semantics} -> ${relation.target}`);\n\t\t\treturn [`model ${pascal(module.namespace)}${objectType.type} {`, \" id String @id\", \" tenantId String\", \" spaceId String\", ...fields, ...relations, \"\", \" @@index([tenantId, spaceId])\", ` @@map(\"${module.namespace}_${objectType.type}\")`, \"}\"].join(\"\\n\");\n\t\t}));\n\t\tconst content = [`// Generated by ${prismaGenerator.name}@${prismaGenerator.version}`, `// Manifest digest: ${ir.manifestDigest}`, \"generator client {\\n provider = \\\"prisma-client-js\\\"\\n}\", \"datasource db {\\n provider = \\\"postgresql\\\"\\n url = env(\\\"DATABASE_URL\\\")\\n}\", \"\", ...models, \"\"].join(\"\\n\\n\");\n\t\treturn [{ path: \"prisma/schema.prisma\", content }, { path: \"prisma/compatibility.json\", content: JSON.stringify({ manifestDigest: ir.manifestDigest, automaticMigration: false, reviewRequired: true }, null, 2) }];\n\t},\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,IAAM,SAAS,CAAC,WAAuC;AACtD,QAAM,OAAO,MAAM,QAAQ,OAAO,IAAI,IAAI,OAAO,KAAK,KAAK,CAAC,SAAS,SAAS,MAAM,IAAI,OAAO;AAC/F,MAAI,SAAS,SAAU,QAAO;AAC9B,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,SAAU,QAAO;AAC9B,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,WAAW,SAAS,SAAU,QAAO;AAClD,SAAO;AACR;AACA,IAAM,SAAS,CAAC,UAA0B,MAAM,MAAM,QAAQ,EAAE,OAAO,OAAO,EAAE,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE;AAC7I,IAAM,aAAa,CAAC,UAA0B;AAC7C,QAAM,aAAa,MAAM,QAAQ,kBAAkB,GAAG;AACtD,SAAO,YAAY,KAAK,UAAU,IAAI,aAAa,SAAS,UAAU;AACvE;AAEO,IAAM,kBAAmC;AAAA,EAC/C,MAAM;AAAA,EAAyB,SAAS;AAAA,EACxC,SAAS,IAAI;AACZ,UAAM,SAAS,GAAG,QAAQ,QAAQ,CAACA,YAAWA,QAAO,YAAY,IAAI,CAAC,eAAe;AACpF,YAAM,WAAW,IAAI,IAAI,WAAW,QAAQ,YAAY,CAAC,CAAC;AAC1D,YAAM,SAAS,OAAO,QAAQ,WAAW,QAAQ,cAAc,CAAC,CAAC,EAC/D,OAAO,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,MAAM,YAAY,SAAS,EAAE,SAAS,IAAI,CAAC,EAChE,IAAI,CAAC,CAAC,MAAM,MAAM,MAAM,KAAK,WAAW,IAAI,CAAC,IAAI,OAAO,MAAM,CAAC,GAAG,SAAS,IAAI,IAAI,IAAI,KAAK,GAAG,GAAG,WAAW,IAAI,MAAM,OAAO,KAAK,UAAU,IAAI,IAAI,EAAE;AACzJ,YAAM,aAAa,WAAW,aAAa,CAAC,GAAG,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,aAAa,SAAS,gBAAgB,SAAS,OAAO,SAAS,WAAW,KAAK,GAAG,OAAO,SAAS,SAAS,OAAO,SAAS,MAAM,EAAE;AACtN,aAAO,CAAC,SAAS,OAAOA,QAAO,SAAS,CAAC,GAAG,WAAW,IAAI,MAAM,mBAAmB,qBAAqB,oBAAoB,GAAG,QAAQ,GAAG,WAAW,IAAI,kCAAkC,YAAYA,QAAO,SAAS,IAAI,WAAW,IAAI,MAAM,GAAG,EAAE,KAAK,IAAI;AAAA,IAChQ,CAAC,CAAC;AACF,UAAM,UAAU,CAAC,mBAAmB,gBAAgB,IAAI,IAAI,gBAAgB,OAAO,IAAI,uBAAuB,GAAG,cAAc,IAAI,0DAA4D,mFAAuF,IAAI,GAAG,QAAQ,EAAE,EAAE,KAAK,MAAM;AACpT,WAAO,CAAC,EAAE,MAAM,wBAAwB,QAAQ,GAAG,EAAE,MAAM,6BAA6B,SAAS,KAAK,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,oBAAoB,OAAO,gBAAgB,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC;AAAA,EACnN;AACD;","names":["module"]}
@@ -0,0 +1,5 @@
1
+ import { GeneratorTarget } from '@fabricorg/compiler';
2
+
3
+ declare const prismaGenerator: GeneratorTarget;
4
+
5
+ export { prismaGenerator };
@@ -0,0 +1,5 @@
1
+ import { GeneratorTarget } from '@fabricorg/compiler';
2
+
3
+ declare const prismaGenerator: GeneratorTarget;
4
+
5
+ export { prismaGenerator };
package/dist/index.js ADDED
@@ -0,0 +1,33 @@
1
+ // index.ts
2
+ var scalar = (schema) => {
3
+ const type = Array.isArray(schema.type) ? schema.type.find((item) => item !== "null") : schema.type;
4
+ if (type === "string") return "String";
5
+ if (type === "integer") return "Int";
6
+ if (type === "number") return "Float";
7
+ if (type === "boolean") return "Boolean";
8
+ if (type === "array" || type === "object") return "Json";
9
+ return "Json";
10
+ };
11
+ var pascal = (value) => value.split(/[-._/]/).filter(Boolean).map((part) => part[0]?.toUpperCase() + part.slice(1)).join("");
12
+ var identifier = (value) => {
13
+ const normalized = value.replace(/[^a-zA-Z0-9_]/g, "_");
14
+ return /^[a-zA-Z]/.test(normalized) ? normalized : `field_${normalized}`;
15
+ };
16
+ var prismaGenerator = {
17
+ name: "@fabricorg/gen-prisma",
18
+ version: "0.1.0",
19
+ generate(ir) {
20
+ const models = ir.modules.flatMap((module) => module.objectTypes.map((objectType) => {
21
+ const required = new Set(objectType.schema?.required ?? []);
22
+ const fields = Object.entries(objectType.schema?.properties ?? {}).filter(([name]) => !["id", "tenantId", "spaceId"].includes(name)).map(([name, schema]) => ` ${identifier(name)} ${scalar(schema)}${required.has(name) ? "" : "?"}${identifier(name) === name ? "" : ` @map("${name}")`}`);
23
+ const relations = (objectType.relations ?? []).map((relation) => ` ${relation.name}Ids String${relation.cardinality === "many" ? "[]" : relation.required ? "" : "?"} // ${relation.semantics} -> ${relation.target}`);
24
+ return [`model ${pascal(module.namespace)}${objectType.type} {`, " id String @id", " tenantId String", " spaceId String", ...fields, ...relations, "", " @@index([tenantId, spaceId])", ` @@map("${module.namespace}_${objectType.type}")`, "}"].join("\n");
25
+ }));
26
+ const content = [`// Generated by ${prismaGenerator.name}@${prismaGenerator.version}`, `// Manifest digest: ${ir.manifestDigest}`, 'generator client {\n provider = "prisma-client-js"\n}', 'datasource db {\n provider = "postgresql"\n url = env("DATABASE_URL")\n}', "", ...models, ""].join("\n\n");
27
+ return [{ path: "prisma/schema.prisma", content }, { path: "prisma/compatibility.json", content: JSON.stringify({ manifestDigest: ir.manifestDigest, automaticMigration: false, reviewRequired: true }, null, 2) }];
28
+ }
29
+ };
30
+ export {
31
+ prismaGenerator
32
+ };
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["import type { GeneratorTarget } from \"@fabricorg/compiler\";\nimport type { PortableJsonSchema } from \"@fabricorg/platform\";\n\nconst scalar = (schema: PortableJsonSchema): string => {\n\tconst type = Array.isArray(schema.type) ? schema.type.find((item) => item !== \"null\") : schema.type;\n\tif (type === \"string\") return \"String\";\n\tif (type === \"integer\") return \"Int\";\n\tif (type === \"number\") return \"Float\";\n\tif (type === \"boolean\") return \"Boolean\";\n\tif (type === \"array\" || type === \"object\") return \"Json\";\n\treturn \"Json\";\n};\nconst pascal = (value: string): string => value.split(/[-._/]/).filter(Boolean).map((part) => part[0]?.toUpperCase() + part.slice(1)).join(\"\");\nconst identifier = (value: string): string => {\n\tconst normalized = value.replace(/[^a-zA-Z0-9_]/g, \"_\");\n\treturn /^[a-zA-Z]/.test(normalized) ? normalized : `field_${normalized}`;\n};\n\nexport const prismaGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-prisma\", version: \"0.1.0\",\n\tgenerate(ir) {\n\t\tconst models = ir.modules.flatMap((module) => module.objectTypes.map((objectType) => {\n\t\t\tconst required = new Set(objectType.schema?.required ?? []);\n\t\t\tconst fields = Object.entries(objectType.schema?.properties ?? {})\n\t\t\t\t.filter(([name]) => ![\"id\", \"tenantId\", \"spaceId\"].includes(name))\n\t\t\t\t.map(([name, schema]) => ` ${identifier(name)} ${scalar(schema)}${required.has(name) ? \"\" : \"?\"}${identifier(name) === name ? \"\" : ` @map(\"${name}\")`}`);\n\t\t\tconst relations = (objectType.relations ?? []).map((relation) => ` ${relation.name}Ids String${relation.cardinality === \"many\" ? \"[]\" : relation.required ? \"\" : \"?\"} // ${relation.semantics} -> ${relation.target}`);\n\t\t\treturn [`model ${pascal(module.namespace)}${objectType.type} {`, \" id String @id\", \" tenantId String\", \" spaceId String\", ...fields, ...relations, \"\", \" @@index([tenantId, spaceId])\", ` @@map(\"${module.namespace}_${objectType.type}\")`, \"}\"].join(\"\\n\");\n\t\t}));\n\t\tconst content = [`// Generated by ${prismaGenerator.name}@${prismaGenerator.version}`, `// Manifest digest: ${ir.manifestDigest}`, \"generator client {\\n provider = \\\"prisma-client-js\\\"\\n}\", \"datasource db {\\n provider = \\\"postgresql\\\"\\n url = env(\\\"DATABASE_URL\\\")\\n}\", \"\", ...models, \"\"].join(\"\\n\\n\");\n\t\treturn [{ path: \"prisma/schema.prisma\", content }, { path: \"prisma/compatibility.json\", content: JSON.stringify({ manifestDigest: ir.manifestDigest, automaticMigration: false, reviewRequired: true }, null, 2) }];\n\t},\n};\n"],"mappings":";AAGA,IAAM,SAAS,CAAC,WAAuC;AACtD,QAAM,OAAO,MAAM,QAAQ,OAAO,IAAI,IAAI,OAAO,KAAK,KAAK,CAAC,SAAS,SAAS,MAAM,IAAI,OAAO;AAC/F,MAAI,SAAS,SAAU,QAAO;AAC9B,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,SAAU,QAAO;AAC9B,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,WAAW,SAAS,SAAU,QAAO;AAClD,SAAO;AACR;AACA,IAAM,SAAS,CAAC,UAA0B,MAAM,MAAM,QAAQ,EAAE,OAAO,OAAO,EAAE,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE;AAC7I,IAAM,aAAa,CAAC,UAA0B;AAC7C,QAAM,aAAa,MAAM,QAAQ,kBAAkB,GAAG;AACtD,SAAO,YAAY,KAAK,UAAU,IAAI,aAAa,SAAS,UAAU;AACvE;AAEO,IAAM,kBAAmC;AAAA,EAC/C,MAAM;AAAA,EAAyB,SAAS;AAAA,EACxC,SAAS,IAAI;AACZ,UAAM,SAAS,GAAG,QAAQ,QAAQ,CAAC,WAAW,OAAO,YAAY,IAAI,CAAC,eAAe;AACpF,YAAM,WAAW,IAAI,IAAI,WAAW,QAAQ,YAAY,CAAC,CAAC;AAC1D,YAAM,SAAS,OAAO,QAAQ,WAAW,QAAQ,cAAc,CAAC,CAAC,EAC/D,OAAO,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,MAAM,YAAY,SAAS,EAAE,SAAS,IAAI,CAAC,EAChE,IAAI,CAAC,CAAC,MAAM,MAAM,MAAM,KAAK,WAAW,IAAI,CAAC,IAAI,OAAO,MAAM,CAAC,GAAG,SAAS,IAAI,IAAI,IAAI,KAAK,GAAG,GAAG,WAAW,IAAI,MAAM,OAAO,KAAK,UAAU,IAAI,IAAI,EAAE;AACzJ,YAAM,aAAa,WAAW,aAAa,CAAC,GAAG,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,aAAa,SAAS,gBAAgB,SAAS,OAAO,SAAS,WAAW,KAAK,GAAG,OAAO,SAAS,SAAS,OAAO,SAAS,MAAM,EAAE;AACtN,aAAO,CAAC,SAAS,OAAO,OAAO,SAAS,CAAC,GAAG,WAAW,IAAI,MAAM,mBAAmB,qBAAqB,oBAAoB,GAAG,QAAQ,GAAG,WAAW,IAAI,kCAAkC,YAAY,OAAO,SAAS,IAAI,WAAW,IAAI,MAAM,GAAG,EAAE,KAAK,IAAI;AAAA,IAChQ,CAAC,CAAC;AACF,UAAM,UAAU,CAAC,mBAAmB,gBAAgB,IAAI,IAAI,gBAAgB,OAAO,IAAI,uBAAuB,GAAG,cAAc,IAAI,0DAA4D,mFAAuF,IAAI,GAAG,QAAQ,EAAE,EAAE,KAAK,MAAM;AACpT,WAAO,CAAC,EAAE,MAAM,wBAAwB,QAAQ,GAAG,EAAE,MAAM,6BAA6B,SAAS,KAAK,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,oBAAoB,OAAO,gBAAgB,KAAK,GAAG,MAAM,CAAC,EAAE,CAAC;AAAA,EACnN;AACD;","names":[]}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@fabricorg/gen-prisma",
3
+ "version": "0.2.0",
4
+ "description": "Reference Prisma schema generator for Fabric compiler IR.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "main": "./dist/index.cjs",
9
+ "types": "./dist/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
20
+ }
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "CHANGELOG.md"
26
+ ],
27
+ "dependencies": {
28
+ "@fabricorg/compiler": "^0.2.0",
29
+ "@fabricorg/platform": "^0.11.0"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^22.10.0",
33
+ "tsup": "^8.5.0",
34
+ "typescript": "^5.7.3",
35
+ "vitest": "^4.1.5"
36
+ },
37
+ "engines": {
38
+ "node": ">=20"
39
+ },
40
+ "publishConfig": {
41
+ "access": "public"
42
+ },
43
+ "scripts": {
44
+ "clean": "rm -rf dist tsconfig.tsbuildinfo",
45
+ "build": "tsup",
46
+ "type-check": "tsc --noEmit",
47
+ "test": "vitest run"
48
+ }
49
+ }