relq 1.0.18 → 1.0.20
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.
|
@@ -51,10 +51,13 @@ async function loadConfig(startPath) {
|
|
|
51
51
|
return {};
|
|
52
52
|
}
|
|
53
53
|
try {
|
|
54
|
+
console.log(result.projectRoot);
|
|
55
|
+
console.log(result.configPath);
|
|
54
56
|
const jiti = (0, jiti_1.createJiti)(result.projectRoot, {
|
|
55
57
|
interopDefault: true,
|
|
56
58
|
});
|
|
57
59
|
const module = await jiti.import(result.configPath);
|
|
60
|
+
console.log(module);
|
|
58
61
|
if (module && typeof module === 'object' && 'default' in module) {
|
|
59
62
|
return module.default;
|
|
60
63
|
}
|
|
@@ -63,7 +66,8 @@ async function loadConfig(startPath) {
|
|
|
63
66
|
}
|
|
64
67
|
return {};
|
|
65
68
|
}
|
|
66
|
-
catch {
|
|
69
|
+
catch (err) {
|
|
70
|
+
console.error('Error loading config:', err);
|
|
67
71
|
return {};
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -44,10 +44,13 @@ export async function loadConfig(startPath) {
|
|
|
44
44
|
return {};
|
|
45
45
|
}
|
|
46
46
|
try {
|
|
47
|
+
console.log(result.projectRoot);
|
|
48
|
+
console.log(result.configPath);
|
|
47
49
|
const jiti = createJiti(result.projectRoot, {
|
|
48
50
|
interopDefault: true,
|
|
49
51
|
});
|
|
50
52
|
const module = await jiti.import(result.configPath);
|
|
53
|
+
console.log(module);
|
|
51
54
|
if (module && typeof module === 'object' && 'default' in module) {
|
|
52
55
|
return module.default;
|
|
53
56
|
}
|
|
@@ -56,7 +59,8 @@ export async function loadConfig(startPath) {
|
|
|
56
59
|
}
|
|
57
60
|
return {};
|
|
58
61
|
}
|
|
59
|
-
catch {
|
|
62
|
+
catch (err) {
|
|
63
|
+
console.error('Error loading config:', err);
|
|
60
64
|
return {};
|
|
61
65
|
}
|
|
62
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "relq",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "The Fully-Typed PostgreSQL ORM for TypeScript",
|
|
5
5
|
"author": "Olajide Mathew O. <olajide.mathew@yuniq.solutions>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"node": ">=18.0.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"jiti": "^2.6.1",
|
|
55
54
|
"@aws-sdk/dsql-signer": "^3.962.0",
|
|
56
55
|
"@pgsql/types": "^17.6.2",
|
|
57
56
|
"cli-spinners": "^3.3.0",
|
|
57
|
+
"jiti": "^2.6.1",
|
|
58
58
|
"ora": "^9.0.0",
|
|
59
59
|
"pgsql-deparser": "^17.17.0",
|
|
60
60
|
"pgsql-parser": "^17.9.9",
|