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.
Files changed (2) hide show
  1. package/bin/glyphix.js +3 -3
  2. 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 = dotenvTags[0];
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glyphix",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [