glyphix 1.2.8 → 1.2.10

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
@@ -335,22 +335,22 @@ var GxGenerate = class {
335
335
  }
336
336
  const curDir = process.cwd();
337
337
  process.chdir((0, import_node_path3.resolve)(this.sourceRoot, ".."));
338
- const installDepProcess = (0, import_node_child_process.spawn)("npm", ["install"], { shell: true });
338
+ try {
339
+ (0, import_node_fs.unlinkSync)((0, import_node_path3.resolve)(process.cwd(), "package-lock.json"));
340
+ (0, import_node_fs.unlinkSync)((0, import_node_path3.resolve)(process.cwd(), "yarn.lock"));
341
+ } catch {
342
+ }
343
+ const installDepProcess = (0, import_node_child_process.spawn)(
344
+ "npm",
345
+ ["install", "--allow-remote", "all", "--no-save", "typescript@^5.8.3"],
346
+ { shell: true }
347
+ );
339
348
  installDepProcess.on("error", (err) => {
340
349
  console.error(err);
341
350
  });
342
351
  installDepProcess.on("message", (message) => {
343
352
  console.log(message);
344
353
  });
345
- installDepProcess.on("close", (code) => {
346
- if (code === 0) {
347
- process.chdir(curDir);
348
- resolve3();
349
- } else {
350
- process.chdir(curDir);
351
- process.exit(1);
352
- }
353
- });
354
354
  let stdout = "";
355
355
  let stderr = "";
356
356
  if (installDepProcess.stdout) {
@@ -371,14 +371,16 @@ var GxGenerate = class {
371
371
  });
372
372
  installDepProcess.on("close", (code, signal) => {
373
373
  if (code === 0) {
374
+ process.chdir(curDir);
374
375
  resolve3();
375
376
  return;
376
377
  }
378
+ process.chdir(curDir);
377
379
  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);
380
+ const errOutput = stderr.trim();
381
+ if (out) console.error("[npm install] stdout:", out);
382
+ if (errOutput) console.error("[npm install] stderr:", errOutput);
383
+ console.error("[npm install] exited with code:", code);
382
384
  });
383
385
  });
384
386
  }
@@ -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.8",
3
+ "version": "1.2.10",
4
4
  "main": "lib/index.js",
5
5
  "types": "types/index.d.ts",
6
6
  "files": [