@prisma-next/cli 0.0.1 → 0.1.0-pr.32.2

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/README.md CHANGED
@@ -351,9 +351,8 @@ sql schema (tables: 2)
351
351
  "id": "column-user-id",
352
352
  "label": "id: int4 (not null)",
353
353
  "meta": {
354
- "typeId": "pg/int4@1",
355
- "nullable": false,
356
- "nativeType": "int4"
354
+ "nativeType": "int4",
355
+ "nullable": false
357
356
  }
358
357
  }
359
358
  ]
package/dist/cli.js CHANGED
@@ -24,6 +24,9 @@ async function loadConfig(configPath) {
24
24
  ...resolvedConfigPath ? { configFile: resolvedConfigPath } : {},
25
25
  cwd: configCwd
26
26
  });
27
+ if (resolvedConfigPath && result.configFile !== resolvedConfigPath) {
28
+ throw errorConfigFileNotFound(resolvedConfigPath);
29
+ }
27
30
  if (!result.config || Object.keys(result.config).length === 0) {
28
31
  const displayPath = result.configFile || resolvedConfigPath || configPath;
29
32
  throw errorConfigFileNotFound(displayPath);
@@ -82,7 +85,7 @@ function parseGlobalFlags(options) {
82
85
  if (options.timestamps) {
83
86
  flags.timestamps = true;
84
87
  }
85
- if (process.env["NO_COLOR"]) {
88
+ if (process.env["NO_COLOR"] || flags.json) {
86
89
  flags.color = false;
87
90
  } else if (options["no-color"]) {
88
91
  flags.color = false;