@kithinji/pod 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kithinji/pod",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "pod": "./dist/main.js"
package/src/main.ts CHANGED
@@ -28,7 +28,7 @@ import { dockerize } from "./docker";
28
28
 
29
29
  const program = new Command();
30
30
 
31
- program.name("pod").description("Pod cli tool").version("0.0.0");
31
+ program.name("pod").description("Pod cli tool").version("1.0.4");
32
32
 
33
33
  program
34
34
  .command("new <name>")
@@ -38,11 +38,16 @@ program
38
38
 
39
39
  const appDir = path.resolve(process.cwd(), name);
40
40
 
41
+ const shell =
42
+ process.platform === "win32"
43
+ ? process.env.ComSpec || "cmd.exe"
44
+ : "/bin/sh";
45
+
41
46
  console.log("Installing dependencies...");
42
- execSync("npm install", { stdio: "inherit", cwd: appDir });
47
+ execSync("npm install", { stdio: "inherit", cwd: appDir, shell });
43
48
 
44
49
  console.log("Starting development server...");
45
- execSync("npm run dev", { stdio: "inherit", cwd: appDir });
50
+ execSync("npm run dev", { stdio: "inherit", cwd: appDir, shell });
46
51
 
47
52
  console.log(`All done! Your app "${name}" is running in development mode.`);
48
53
  });