glyphix 1.2.3 → 1.2.5
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/bin/glyphix.js +3 -3
- package/package.json +1 -1
package/bin/glyphix.js
CHANGED
|
@@ -192,7 +192,7 @@ var GxGenerate = class {
|
|
|
192
192
|
"production"
|
|
193
193
|
];
|
|
194
194
|
if (!dotenvTags.includes(process.env.GLYPHIX_ENV ?? "")) {
|
|
195
|
-
process.env.GLYPHIX_ENV =
|
|
195
|
+
process.env.GLYPHIX_ENV = "production";
|
|
196
196
|
}
|
|
197
197
|
const dotenvPath = (0, import_node_path3.resolve)(this.sourceRoot, "..", ".env");
|
|
198
198
|
const dotenvFiles = [
|
|
@@ -299,7 +299,7 @@ var GxGenerate = class {
|
|
|
299
299
|
if (customConfigPath.endsWith(".ts")) {
|
|
300
300
|
require("ts-node").register({
|
|
301
301
|
transpileOnly: true,
|
|
302
|
-
project: this.sourceRoot
|
|
302
|
+
project: (0, import_node_path3.resolve)(this.sourceRoot, "..")
|
|
303
303
|
});
|
|
304
304
|
}
|
|
305
305
|
const useConfig = require(customConfigPath);
|
|
@@ -307,8 +307,8 @@ var GxGenerate = class {
|
|
|
307
307
|
return a;
|
|
308
308
|
} catch (error) {
|
|
309
309
|
console.error(error);
|
|
310
|
+
throw error;
|
|
310
311
|
}
|
|
311
|
-
return internalConfig;
|
|
312
312
|
}
|
|
313
313
|
judgeIsWorkspace(parentPath, childPath) {
|
|
314
314
|
const resolvedParent = (0, import_node_path3.resolve)(parentPath);
|