glyphix 1.2.6 → 1.2.7

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 +4 -0
  2. package/package.json +1 -1
package/bin/glyphix.js CHANGED
@@ -155,6 +155,7 @@ function mergeEsbuildConfigs(...configs) {
155
155
  }
156
156
  return result;
157
157
  }
158
+ process.env.FORCE_COLOR = "3";
158
159
  var GxGenerate = class {
159
160
  constructor() {
160
161
  // 执行 gx 命令的目录路径
@@ -241,6 +242,7 @@ var GxGenerate = class {
241
242
  define: {
242
243
  ...this.loadEnv()
243
244
  },
245
+ color: true,
244
246
  nodePaths: [(0, import_node_path3.resolve)(this.sourceRoot, "..", "node_modules")],
245
247
  sourcemap: true,
246
248
  minify: process.env.GLYPHIX_ENV === "development" ? false : true,
@@ -358,6 +360,8 @@ var GxGenerate = class {
358
360
  process.chdir(curDir);
359
361
  }).catch((error) => {
360
362
  console.error("Build failed:", error);
363
+ process.chdir(curDir);
364
+ process.exit(1);
361
365
  });
362
366
  }
363
367
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glyphix",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [