@cedarjs/cli 1.0.0-canary.12729 → 1.0.0-canary.12730

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/dist/lib/background.js +21 -13
  2. package/package.json +11 -11
@@ -26,19 +26,27 @@ function spawnBackgroundProcess(name, cmd, args) {
26
26
  "w"
27
27
  );
28
28
  fs.writeSync(stderr, logHeader);
29
- const spawnOptions = os.type() === "Windows_NT" ? {
30
- // The following options run the process in the background without a console window, even though they don't look like they would.
31
- // See https://github.com/nodejs/node/issues/21825#issuecomment-503766781 for information
32
- detached: false,
33
- windowsHide: false,
34
- shell: true,
35
- stdio: ["ignore", stdout, stderr]
36
- } : {
37
- detached: true,
38
- stdio: ["ignore", stdout, stderr]
39
- };
40
- const child = spawn(cmd, args, spawnOptions);
41
- child.unref();
29
+ if (os.type() === "Windows_NT") {
30
+ const spawnOptions = {
31
+ // The following options run the process in the background without a
32
+ // console window, even though they don't look like they would.
33
+ // See https://github.com/nodejs/node/issues/21825#issuecomment-503766781
34
+ // for information.
35
+ detached: false,
36
+ windowsHide: false,
37
+ shell: true,
38
+ stdio: ["ignore", stdout, stderr]
39
+ };
40
+ const child = spawn(cmd + " " + args.join(" "), spawnOptions);
41
+ child.unref();
42
+ } else {
43
+ const spawnOptions = {
44
+ detached: true,
45
+ stdio: ["ignore", stdout, stderr]
46
+ };
47
+ const child = spawn(cmd, args, spawnOptions);
48
+ child.unref();
49
+ }
42
50
  }
43
51
  export {
44
52
  spawnBackgroundProcess
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/cli",
3
- "version": "1.0.0-canary.12729+338020ede",
3
+ "version": "1.0.0-canary.12730+989a16511",
4
4
  "description": "The CedarJS Command Line",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,15 +32,15 @@
32
32
  "dependencies": {
33
33
  "@babel/preset-typescript": "7.27.1",
34
34
  "@babel/runtime-corejs3": "7.27.6",
35
- "@cedarjs/api-server": "1.0.0-canary.12729",
36
- "@cedarjs/cli-helpers": "1.0.0-canary.12729",
37
- "@cedarjs/fastify-web": "1.0.0-canary.12729",
38
- "@cedarjs/internal": "1.0.0-canary.12729",
39
- "@cedarjs/prerender": "1.0.0-canary.12729",
40
- "@cedarjs/project-config": "1.0.0-canary.12729",
41
- "@cedarjs/structure": "1.0.0-canary.12729",
42
- "@cedarjs/telemetry": "1.0.0-canary.12729",
43
- "@cedarjs/web-server": "1.0.0-canary.12729",
35
+ "@cedarjs/api-server": "1.0.0-canary.12730",
36
+ "@cedarjs/cli-helpers": "1.0.0-canary.12730",
37
+ "@cedarjs/fastify-web": "1.0.0-canary.12730",
38
+ "@cedarjs/internal": "1.0.0-canary.12730",
39
+ "@cedarjs/prerender": "1.0.0-canary.12730",
40
+ "@cedarjs/project-config": "1.0.0-canary.12730",
41
+ "@cedarjs/structure": "1.0.0-canary.12730",
42
+ "@cedarjs/telemetry": "1.0.0-canary.12730",
43
+ "@cedarjs/web-server": "1.0.0-canary.12730",
44
44
  "@listr2/prompt-adapter-enquirer": "2.0.16",
45
45
  "@opentelemetry/api": "1.8.0",
46
46
  "@opentelemetry/core": "1.22.0",
@@ -102,5 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "gitHead": "338020ede5f5249d4126a6914f762c35ad1448f2"
105
+ "gitHead": "989a16511067706d010c59ab65f9aadc2ab16276"
106
106
  }