@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/dist/main.js +4 -3
- package/dist/main.js.map +2 -2
- package/package.json +1 -1
- package/src/main.ts +8 -3
package/dist/main.js
CHANGED
|
@@ -4468,14 +4468,15 @@ function printNextSteps(projectName, env, services) {
|
|
|
4468
4468
|
|
|
4469
4469
|
// src/main.ts
|
|
4470
4470
|
var program = new Command();
|
|
4471
|
-
program.name("pod").description("Pod cli tool").version("
|
|
4471
|
+
program.name("pod").description("Pod cli tool").version("1.0.4");
|
|
4472
4472
|
program.command("new <name>").description("Start a new Pod Project").action(async (name) => {
|
|
4473
4473
|
await addNew(name);
|
|
4474
4474
|
const appDir = path13.resolve(process.cwd(), name);
|
|
4475
|
+
const shell = process.platform === "win32" ? process.env.ComSpec || "cmd.exe" : "/bin/sh";
|
|
4475
4476
|
console.log("Installing dependencies...");
|
|
4476
|
-
execSync("npm install", { stdio: "inherit", cwd: appDir });
|
|
4477
|
+
execSync("npm install", { stdio: "inherit", cwd: appDir, shell });
|
|
4477
4478
|
console.log("Starting development server...");
|
|
4478
|
-
execSync("npm run dev", { stdio: "inherit", cwd: appDir });
|
|
4479
|
+
execSync("npm run dev", { stdio: "inherit", cwd: appDir, shell });
|
|
4479
4480
|
console.log(`All done! Your app "${name}" is running in development mode.`);
|
|
4480
4481
|
});
|
|
4481
4482
|
program.command("dev").description("Start Pod development server").action(async (opts) => {
|