@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 +2 -3
- package/dist/cli.js +4 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
package/README.md
CHANGED
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;
|