glyphix 1.1.1 → 1.2.0

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 +18 -3
  2. package/package.json +1 -1
package/bin/glyphix.js CHANGED
@@ -279,13 +279,28 @@ var GxGenerate = class {
279
279
  }
280
280
  ]
281
281
  };
282
- const customConfigPath = (0, import_node_path3.resolve)(
282
+ let customConfigPath = (0, import_node_path3.resolve)(
283
283
  this.sourceRoot,
284
284
  "..",
285
- "glyphix.config.js"
285
+ "glyphix.config.ts"
286
286
  );
287
- if (!(0, import_node_fs.existsSync)(customConfigPath)) return internalConfig;
287
+ if (!(0, import_node_fs.existsSync)(customConfigPath))
288
+ customConfigPath = (0, import_node_path3.resolve)(
289
+ this.sourceRoot,
290
+ "..",
291
+ "glyphix.config.js"
292
+ );
293
+ if (!(0, import_node_fs.existsSync)(customConfigPath))
294
+ return internalConfig;
288
295
  try {
296
+ if (customConfigPath.endsWith(".ts")) {
297
+ require("ts-node").register({
298
+ transpileOnly: true,
299
+ compilerOptions: {
300
+ module: "commonjs"
301
+ }
302
+ });
303
+ }
289
304
  const useConfig = require(customConfigPath);
290
305
  const a = mergeEsbuildConfigs(internalConfig, useConfig);
291
306
  console.log(a.plugins);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glyphix",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [