mutano 2.6.1 → 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.
Files changed (2) hide show
  1. package/dist/main.js +3 -3
  2. 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")) {
@@ -873,9 +873,9 @@ export type JsonPrimitive = boolean | number | string | null;
873
873
 
874
874
  export type JsonValue = JsonArray | JsonObject | JsonPrimitive;
875
875
 
876
- export type Decimal = ColumnType<string, number | string>
876
+ export type Decimal = ColumnType<string, number | string, number | string>
877
877
 
878
- export type BigInt = ColumnType<string, number | string>
878
+ export type BigInt = ColumnType<string, number | string, number | string>
879
879
  `;
880
880
  consolidatedContent += "// Table Interfaces\n";
881
881
  for (const { content } of tableContents) {
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
1
  {
2
- "name": "mutano",
3
- "type": "module",
4
- "version": "2.6.1",
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
- }
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
  }