nextjs-cms-kit 0.5.83 → 0.5.85

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 +1 @@
1
- {"version":3,"file":"schema-generator.d.ts","sourceRoot":"","sources":["../../src/utils/schema-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAoBzD,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,UAAU,EAAE,WAAW,CAAA;CAC1B,GAAG,OAAO,CAAC;IACR,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,EAAE,CAAA;CACxB,CAAC,CAkKD"}
1
+ {"version":3,"file":"schema-generator.d.ts","sourceRoot":"","sources":["../../src/utils/schema-generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAoBzD,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,UAAU,EAAE,WAAW,CAAA;CAC1B,GAAG,OAAO,CAAC;IACR,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,EAAE,CAAA;CACxB,CAAC,CAsKD"}
@@ -52,6 +52,10 @@ export async function generateDrizzleSchema(table) {
52
52
  const schemaName = tableCaseStyleFn(`${table.name}_table`);
53
53
  schema += `export const ${schemaName} = mysqlTable('${table.name}', {\n`;
54
54
  for (const input of table.fields) {
55
+ // Skip fields with destinationDb - these have a separate table created for them
56
+ // and do not have a corresponding column in the main table
57
+ if ('destinationDb' in input && input.destinationDb !== undefined)
58
+ continue;
55
59
  let columnType;
56
60
  let drizzleColumnType;
57
61
  // let columnOptions = ''
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nextjs-cms-kit",
3
3
  "private": false,
4
- "version": "0.5.83",
4
+ "version": "0.5.85",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "nextjs-cms-kit": "./dist/index.js"
@@ -33,7 +33,7 @@
33
33
  "gradient-string": "^3.0.0",
34
34
  "mysql2": "^3.12.0",
35
35
  "ora": "9.0.0",
36
- "nextjs-cms": "0.5.83"
36
+ "nextjs-cms": "0.5.85"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/bcrypt": "^6.0.0",
@@ -42,9 +42,9 @@
42
42
  "prettier": "^3.3.3",
43
43
  "tsx": "^4.20.6",
44
44
  "typescript": "^5.9.2",
45
- "@lzcms/prettier-config": "0.1.0",
46
45
  "@lzcms/eslint-config": "0.3.0",
47
- "@lzcms/tsconfig": "0.1.0"
46
+ "@lzcms/tsconfig": "0.1.0",
47
+ "@lzcms/prettier-config": "0.1.0"
48
48
  },
49
49
  "prettier": "@lzcms/prettier-config",
50
50
  "scripts": {