@postxl/generators 1.2.3 → 1.3.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.
@@ -31,11 +31,8 @@ export default defineConfig({
31
31
  target: 'esnext',
32
32
  sourcemap: true,
33
33
  commonjsOptions: {
34
- strictRequires: false,
35
- // We include utils here to avoid issues with CJS modules in the utils package
36
- // Support both monorepo (/packages/utils/) and standalone npm install (/@postxl/utils/)
37
- include: [/node_modules/, /packages\/utils/, /@postxl\/utils/],
38
- transformMixedEsModules: true,
34
+ // https://stackoverflow.com/a/75981440
35
+ strictRequires: true,
39
36
  },
40
37
  rollupOptions: {
41
38
  output: {
@@ -81,22 +78,6 @@ export default defineConfig({
81
78
  }
82
79
  },
83
80
  },
84
- onwarn(warning, warn) {
85
- // Suppress eval warnings from @postxl/utils
86
- // These are intentional to prevent bundlers from including Node.js modules in browser builds
87
- if (
88
- warning.code === 'EVAL' &&
89
- warning.id &&
90
- (warning.id.includes('packages/utils/dist/check-port.js') ||
91
- warning.id.includes('packages/utils/dist/random.js') ||
92
- warning.id.includes('@postxl/utils/dist/check-port.js') ||
93
- warning.id.includes('@postxl/utils/dist/random.js'))
94
- ) {
95
- return
96
- }
97
- // Use default for all other warnings
98
- warn(warning)
99
- },
100
81
  cache: false,
101
82
  },
102
83
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/generators",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "Code generators for PXL - generates backend, frontend, Prisma schemas, and more",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -44,10 +44,10 @@
44
44
  "@faker-js/faker": "9.4.0",
45
45
  "@prisma/prisma-schema-wasm": "7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
46
46
  "exceljs": "^4.4.0",
47
- "@postxl/generator": "^1.0.11",
48
- "@postxl/schema": "^1.0.3",
47
+ "@postxl/generator": "^1.1.0",
48
+ "@postxl/schema": "^1.1.0",
49
49
  "@postxl/ui-components": "^1.0.0",
50
- "@postxl/utils": "^1.0.1"
50
+ "@postxl/utils": "^1.1.0"
51
51
  },
52
52
  "devDependencies": {},
53
53
  "wallaby": {