mutano 2.6.2 → 2.6.3
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/main.js +1 -1
- package/package.json +31 -31
package/dist/main.js
CHANGED
|
@@ -396,7 +396,7 @@ export interface ${camelCase(table, { pascalCase: true })} {`;
|
|
|
396
396
|
kyselyType = `Generated<${kyselyType}>`;
|
|
397
397
|
}
|
|
398
398
|
} else if (isJsonField) {
|
|
399
|
-
kyselyType = "Json";
|
|
399
|
+
kyselyType = isNullable ? "Json | null" : "Json";
|
|
400
400
|
} else {
|
|
401
401
|
if (isNullable && !isJsonField) {
|
|
402
402
|
if (!kyselyType.includes("| null")) {
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "mutano",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.6.3",
|
|
5
|
+
"description": "Converts Prisma/MySQL/PostgreSQL/SQLite schemas to Zod/TS/Kysely interfaces",
|
|
6
|
+
"author": "Alisson Cavalcante Agiani <thelinuxlich@gmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"repository": "git@github.com:thelinuxlich/mutano.git",
|
|
9
|
+
"main": "dist/main.js",
|
|
10
|
+
"types": "dist/main.d.ts",
|
|
11
|
+
"files": ["dist"],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "esbuild src/main.ts --format=esm --platform=node --outfile=dist/main.js && tsc src/main.ts -d --emitDeclarationOnly --esModuleInterop --outDir dist",
|
|
14
|
+
"test": "vitest run"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@mrleebo/prisma-ast": "^0.12.1",
|
|
18
|
+
"camelcase": "^8.0.0",
|
|
19
|
+
"fs-extra": "^11.3.0",
|
|
20
|
+
"knex": "^3.1.0",
|
|
21
|
+
"mysql2": "^3.14.1",
|
|
22
|
+
"pg": "^8.16.0",
|
|
23
|
+
"sqlite3": "^5.1.7"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/fs-extra": "^11.0.4",
|
|
27
|
+
"esbuild": "^0.25.4",
|
|
28
|
+
"ts-node": "^10.9.2",
|
|
29
|
+
"tsx": "^4.19.4",
|
|
30
|
+
"typescript": "^5.8.3",
|
|
31
|
+
"vitest": "^3.1.3"
|
|
32
|
+
}
|
|
33
33
|
}
|