glyphix 1.0.37 → 1.0.39

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 +9 -9
  2. package/package.json +1 -1
package/bin/glyphix.js CHANGED
@@ -215,10 +215,11 @@ var GxGenerate = class {
215
215
  path: args.path
216
216
  };
217
217
  }
218
- for (let i = 0; i < resolveExtensions.length; i++) {
218
+ const _resolveExtensions = [...resolveExtensions, ""];
219
+ for (let i = 0; i < _resolveExtensions.length; i++) {
219
220
  const fullPath = (0, import_node_path3.join)(
220
221
  that.buildRoot,
221
- `${args.path}${resolveExtensions[i]}`
222
+ `${args.path}${_resolveExtensions[i]}`
222
223
  );
223
224
  if ((0, import_node_fs.existsSync)(fullPath)) {
224
225
  return {
@@ -227,7 +228,7 @@ var GxGenerate = class {
227
228
  }
228
229
  const fullIndexPath = (0, import_node_path3.join)(
229
230
  that.buildRoot,
230
- `${args.path}/index${resolveExtensions[i]}`
231
+ `${args.path}/index${_resolveExtensions[i]}`
231
232
  );
232
233
  if ((0, import_node_fs.existsSync)(fullIndexPath)) {
233
234
  return {
@@ -243,7 +244,11 @@ var GxGenerate = class {
243
244
  }
244
245
  ]
245
246
  };
246
- const customConfigPath = (0, import_node_path3.resolve)(this.buildRoot, "glyphix.config.js");
247
+ const customConfigPath = (0, import_node_path3.resolve)(
248
+ this.sourceRoot,
249
+ "..",
250
+ "glyphix.config.js"
251
+ );
247
252
  if (!(0, import_node_fs.existsSync)(customConfigPath)) return internalConfig;
248
253
  try {
249
254
  const useConfig = require(customConfigPath);
@@ -275,11 +280,6 @@ var GxGenerate = class {
275
280
  return;
276
281
  }
277
282
  const curDir = process.cwd();
278
- const userConfig = (0, import_node_path3.resolve)(
279
- this.sourceRoot,
280
- "..",
281
- "glyphix.config.js"
282
- );
283
283
  process.chdir((0, import_node_path3.resolve)(this.sourceRoot, ".."));
284
284
  const installDepProcess = (0, import_node_child_process.spawn)("npm", ["install"]);
285
285
  installDepProcess.on("error", (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glyphix",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [