glyphix 1.2.7 → 1.2.9

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 CHANGED
@@ -339,6 +339,9 @@ var GxGenerate = class {
339
339
  installDepProcess.on("error", (err) => {
340
340
  console.error(err);
341
341
  });
342
+ installDepProcess.on("message", (message) => {
343
+ console.log(message);
344
+ });
342
345
  installDepProcess.on("close", (code) => {
343
346
  if (code === 0) {
344
347
  process.chdir(curDir);
@@ -348,6 +351,35 @@ var GxGenerate = class {
348
351
  process.exit(1);
349
352
  }
350
353
  });
354
+ let stdout = "";
355
+ let stderr = "";
356
+ if (installDepProcess.stdout) {
357
+ installDepProcess.stdout.setEncoding("utf8");
358
+ installDepProcess.stdout.on("data", (d) => {
359
+ stdout += d;
360
+ });
361
+ }
362
+ if (installDepProcess.stderr) {
363
+ installDepProcess.stderr.setEncoding("utf8");
364
+ installDepProcess.stderr.on("data", (d) => {
365
+ stderr += d;
366
+ });
367
+ }
368
+ installDepProcess.on("error", (err) => {
369
+ console.error("[npm install] failed to start:", err);
370
+ reject(err);
371
+ });
372
+ installDepProcess.on("close", (code, signal) => {
373
+ if (code === 0) {
374
+ resolve3();
375
+ return;
376
+ }
377
+ const out = stdout.trim();
378
+ const err = stderr.trim();
379
+ if (out) console.error(out);
380
+ if (err) console.error(err);
381
+ process.exit(1);
382
+ });
351
383
  });
352
384
  }
353
385
  build() {
@@ -57,7 +57,6 @@ function buildServerPlugin(options) {
57
57
  build.onEnd(async (result) => {
58
58
  });
59
59
  const resolveExtensions = [".ts", ".js"];
60
- console.log("00000", build.initialOptions.define);
61
60
  const execRoot = JSON.parse(
62
61
  build.initialOptions.define["GLYPHIX_EXEC_ROOT"]
63
62
  );
@@ -46,7 +46,6 @@ function buildServerPlugin(options) {
46
46
  build.onEnd((result) => __async(this, null, function* () {
47
47
  }));
48
48
  const resolveExtensions = [".ts", ".js"];
49
- console.log("00000", build.initialOptions.define);
50
49
  const execRoot = JSON.parse(
51
50
  build.initialOptions.define["GLYPHIX_EXEC_ROOT"]
52
51
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glyphix",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [