@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/package.json
CHANGED
package/src/add/new/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ export function addNew(name: string) {
|
|
|
24
24
|
name: "client",
|
|
25
25
|
files: [
|
|
26
26
|
{ name: "index.html", content: genIndexHtml(name) },
|
|
27
|
-
{ name: "client.
|
|
27
|
+
{ name: "client.tsx", content: genClientTsx() },
|
|
28
28
|
],
|
|
29
29
|
},
|
|
30
30
|
],
|
|
@@ -146,7 +146,7 @@ function genIndexHtml(name: string) {
|
|
|
146
146
|
`;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
function
|
|
149
|
+
function genClientTsx() {
|
|
150
150
|
return `"use interactive";
|
|
151
151
|
|
|
152
152
|
import {
|
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("
|
|
31
|
+
program.name("pod").description("Pod cli tool").version("1.0.5");
|
|
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
|
});
|