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.
- package/bin/glyphix.js +18 -3
- package/package.json +1 -1
package/bin/glyphix.js
CHANGED
|
@@ -279,13 +279,28 @@ var GxGenerate = class {
|
|
|
279
279
|
}
|
|
280
280
|
]
|
|
281
281
|
};
|
|
282
|
-
|
|
282
|
+
let customConfigPath = (0, import_node_path3.resolve)(
|
|
283
283
|
this.sourceRoot,
|
|
284
284
|
"..",
|
|
285
|
-
"glyphix.config.
|
|
285
|
+
"glyphix.config.ts"
|
|
286
286
|
);
|
|
287
|
-
if (!(0, import_node_fs.existsSync)(customConfigPath))
|
|
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);
|