@kithinji/pod 1.0.3 → 1.0.5
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 +6 -5
- package/dist/main.js.map +2 -2
- package/package.json +1 -1
- package/src/add/new/index.ts +2 -2
- package/src/main.ts +8 -3
package/dist/main.js
CHANGED
|
@@ -3931,7 +3931,7 @@ function addNew(name) {
|
|
|
3931
3931
|
name: "client",
|
|
3932
3932
|
files: [
|
|
3933
3933
|
{ name: "index.html", content: genIndexHtml(name) },
|
|
3934
|
-
{ name: "client.
|
|
3934
|
+
{ name: "client.tsx", content: genClientTsx() }
|
|
3935
3935
|
]
|
|
3936
3936
|
}
|
|
3937
3937
|
]
|
|
@@ -4037,7 +4037,7 @@ function genIndexHtml(name) {
|
|
|
4037
4037
|
</html>
|
|
4038
4038
|
`;
|
|
4039
4039
|
}
|
|
4040
|
-
function
|
|
4040
|
+
function genClientTsx() {
|
|
4041
4041
|
return `"use interactive";
|
|
4042
4042
|
|
|
4043
4043
|
import {
|
|
@@ -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.5");
|
|
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) => {
|