relq 1.0.22 → 1.0.24
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/cjs/cli/index.cjs
CHANGED
|
@@ -220,7 +220,6 @@ async function main() {
|
|
|
220
220
|
printHelp();
|
|
221
221
|
process.exit(1);
|
|
222
222
|
}
|
|
223
|
-
console.log('Command:', command);
|
|
224
223
|
let config = null;
|
|
225
224
|
let resolvedProjectRoot = process.cwd();
|
|
226
225
|
if (requiresConfig(command)) {
|
|
@@ -260,7 +259,7 @@ async function main() {
|
|
|
260
259
|
console.error('');
|
|
261
260
|
process.exit(1);
|
|
262
261
|
}
|
|
263
|
-
config = await loadConfigWithEnv(
|
|
262
|
+
config = await loadConfigWithEnv(foundConfig);
|
|
264
263
|
if (requiresDbConnection(command, flags) && !config.connection?.host && !config.connection?.url) {
|
|
265
264
|
const colors = {
|
|
266
265
|
red: (s) => `\x1b[31m${s}\x1b[0m`,
|
|
@@ -120,7 +120,6 @@ function getSchemaPath(config) {
|
|
|
120
120
|
if (!config) {
|
|
121
121
|
return (0, cli_utils_1.fatal)('Configuration is required', 'Schema path must be defined in relq.config.ts');
|
|
122
122
|
}
|
|
123
|
-
console.log(config);
|
|
124
123
|
if (typeof config.schema === 'string' && config.schema.length > 0) {
|
|
125
124
|
return config.schema;
|
|
126
125
|
}
|
|
@@ -51,18 +51,14 @@ async function loadConfig(startPath) {
|
|
|
51
51
|
return {};
|
|
52
52
|
}
|
|
53
53
|
try {
|
|
54
|
-
console.log(result.projectRoot);
|
|
55
|
-
console.log(result.configPath);
|
|
56
54
|
const jiti = (0, jiti_1.createJiti)(result.projectRoot, {
|
|
57
55
|
interopDefault: true,
|
|
58
56
|
});
|
|
59
57
|
const module = (await jiti.import(result.configPath));
|
|
60
58
|
if (module && module?.default) {
|
|
61
|
-
console.log(module);
|
|
62
59
|
return module.default;
|
|
63
60
|
}
|
|
64
61
|
if (module && typeof module === 'object' && Object.keys(module).length > 0) {
|
|
65
|
-
console.log(module);
|
|
66
62
|
return module;
|
|
67
63
|
}
|
|
68
64
|
return {};
|
package/dist/esm/cli/index.js
CHANGED
|
@@ -184,7 +184,6 @@ async function main() {
|
|
|
184
184
|
printHelp();
|
|
185
185
|
process.exit(1);
|
|
186
186
|
}
|
|
187
|
-
console.log('Command:', command);
|
|
188
187
|
let config = null;
|
|
189
188
|
let resolvedProjectRoot = process.cwd();
|
|
190
189
|
if (requiresConfig(command)) {
|
|
@@ -224,7 +223,7 @@ async function main() {
|
|
|
224
223
|
console.error('');
|
|
225
224
|
process.exit(1);
|
|
226
225
|
}
|
|
227
|
-
config = await loadConfigWithEnv(
|
|
226
|
+
config = await loadConfigWithEnv(foundConfig);
|
|
228
227
|
if (requiresDbConnection(command, flags) && !config.connection?.host && !config.connection?.url) {
|
|
229
228
|
const colors = {
|
|
230
229
|
red: (s) => `\x1b[31m${s}\x1b[0m`,
|
|
@@ -77,7 +77,6 @@ export function getSchemaPath(config) {
|
|
|
77
77
|
if (!config) {
|
|
78
78
|
return fatal('Configuration is required', 'Schema path must be defined in relq.config.ts');
|
|
79
79
|
}
|
|
80
|
-
console.log(config);
|
|
81
80
|
if (typeof config.schema === 'string' && config.schema.length > 0) {
|
|
82
81
|
return config.schema;
|
|
83
82
|
}
|
|
@@ -44,18 +44,14 @@ export async function loadConfig(startPath) {
|
|
|
44
44
|
return {};
|
|
45
45
|
}
|
|
46
46
|
try {
|
|
47
|
-
console.log(result.projectRoot);
|
|
48
|
-
console.log(result.configPath);
|
|
49
47
|
const jiti = createJiti(result.projectRoot, {
|
|
50
48
|
interopDefault: true,
|
|
51
49
|
});
|
|
52
50
|
const module = (await jiti.import(result.configPath));
|
|
53
51
|
if (module && module?.default) {
|
|
54
|
-
console.log(module);
|
|
55
52
|
return module.default;
|
|
56
53
|
}
|
|
57
54
|
if (module && typeof module === 'object' && Object.keys(module).length > 0) {
|
|
58
|
-
console.log(module);
|
|
59
55
|
return module;
|
|
60
56
|
}
|
|
61
57
|
return {};
|