@postxl/generator 0.70.0 → 0.70.1

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/generator.js CHANGED
@@ -140,7 +140,8 @@ const CONFIG_SCHEMA = zod_1.z
140
140
  const prismaClientPath = (0, client_path_1.getClientImportPath)(otherGenerators);
141
141
  const decodedConfig = CONFIG_SCHEMA.safeParse(generator.config);
142
142
  if (!decodedConfig.success) {
143
- throw new Error(`Invalid generator config: ${decodedConfig.error.message}`);
143
+ console.error(`Invalid generator config: ${decodedConfig.error.message}`);
144
+ process.exit(1);
144
145
  }
145
146
  const config = decodedConfig.data;
146
147
  internals_1.logger.log(`Parsing DMMF...`);
@@ -226,7 +227,6 @@ function generate(_a) {
226
227
  // NOTE: the eslint config provided here must match the .eslintrc files in the template!!!
227
228
  const lintResult = yield generated.lintUTF8Files({
228
229
  fix: true,
229
- useEslintrc: false,
230
230
  allowInlineConfig: true,
231
231
  extensions: ['.ts', '.tsx', '.js', '.jsx'],
232
232
  overrideConfig: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postxl/generator",
3
- "version": "0.70.0",
3
+ "version": "0.70.1",
4
4
  "main": "./dist/generator.js",
5
5
  "typings": "./dist/generator.d.ts",
6
6
  "bin": {
@@ -21,20 +21,20 @@
21
21
  "fast-glob": "3.2.12",
22
22
  "remeda": "1.9.4",
23
23
  "zod": "3.22.2",
24
- "@postxl/lock": "1.4.1",
25
- "@postxl/prettier": "0.0.1"
24
+ "@postxl/lock": "1.4.2",
25
+ "@postxl/prettier": "0.0.2"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@jest/globals": "29.7.0",
29
29
  "@prisma/client": "5.8.1",
30
30
  "@types/eslint": "8.44.7",
31
- "@types/node": "18.15.10",
31
+ "@types/node": "20.5.0",
32
32
  "jest": "29.7.0",
33
33
  "prisma": "5.8.1",
34
34
  "ts-jest": "29.1.3",
35
- "ts-node": "10.9.1",
35
+ "ts-node": "10.9.2",
36
36
  "ts-toolbelt": "9.6.0",
37
- "tsconfig-paths": "4.1.2",
37
+ "tsconfig-paths": "4.2.0",
38
38
  "typescript": "5.4.5"
39
39
  },
40
40
  "peerDependencies": {