create-skybridge 0.0.0-dev.9a2de58 → 0.0.0-dev.9a32e71
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/index.js +14 -20
- package/package.json +1 -1
- package/template/package.json +1 -1
- package/template/server/src/server.ts +0 -5
- package/template/web/src/index.css +1 -0
package/dist/index.js
CHANGED
|
@@ -142,8 +142,20 @@ export async function init(args = process.argv.slice(2)) {
|
|
|
142
142
|
immediate = false;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
const installCmd =
|
|
146
|
-
const runCmd =
|
|
145
|
+
const installCmd = [pkgManager, "install"];
|
|
146
|
+
const runCmd = [pkgManager];
|
|
147
|
+
switch (pkgManager) {
|
|
148
|
+
case "yarn":
|
|
149
|
+
case "pnpm":
|
|
150
|
+
case "bun":
|
|
151
|
+
break;
|
|
152
|
+
case "deno":
|
|
153
|
+
runCmd.push("task");
|
|
154
|
+
break;
|
|
155
|
+
default:
|
|
156
|
+
runCmd.push("run");
|
|
157
|
+
}
|
|
158
|
+
runCmd.push("dev");
|
|
147
159
|
if (!immediate) {
|
|
148
160
|
prompts.outro(`Done! Next steps:
|
|
149
161
|
cd ${targetDir}
|
|
@@ -174,24 +186,6 @@ function run([command, ...args], options) {
|
|
|
174
186
|
process.exit(1);
|
|
175
187
|
}
|
|
176
188
|
}
|
|
177
|
-
function getInstallCommand(pkgManager) {
|
|
178
|
-
if (pkgManager === "yarn") {
|
|
179
|
-
return [pkgManager];
|
|
180
|
-
}
|
|
181
|
-
return [pkgManager, "install"];
|
|
182
|
-
}
|
|
183
|
-
function getRunCommand(packageManager) {
|
|
184
|
-
switch (packageManager) {
|
|
185
|
-
case "yarn":
|
|
186
|
-
case "pnpm":
|
|
187
|
-
case "bun":
|
|
188
|
-
return [packageManager, "dev"];
|
|
189
|
-
case "deno":
|
|
190
|
-
return [packageManager, "task", "dev"];
|
|
191
|
-
default:
|
|
192
|
-
return [packageManager, "run", "dev"];
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
189
|
function sanitizeTargetDir(targetDir) {
|
|
196
190
|
return (targetDir
|
|
197
191
|
.trim()
|
package/package.json
CHANGED
package/template/package.json
CHANGED
|
@@ -3,10 +3,6 @@ import { z } from "zod";
|
|
|
3
3
|
|
|
4
4
|
const Answers = [
|
|
5
5
|
"As I see it, yes",
|
|
6
|
-
"Ask again later",
|
|
7
|
-
"Better not tell you now",
|
|
8
|
-
"Cannot predict now",
|
|
9
|
-
"Concentrate and ask again",
|
|
10
6
|
"Don't count on it",
|
|
11
7
|
"It is certain",
|
|
12
8
|
"It is decidedly so",
|
|
@@ -15,7 +11,6 @@ const Answers = [
|
|
|
15
11
|
"My sources say no",
|
|
16
12
|
"Outlook good",
|
|
17
13
|
"Outlook not so good",
|
|
18
|
-
"Reply hazy, try again",
|
|
19
14
|
"Signs point to yes",
|
|
20
15
|
"Very doubtful",
|
|
21
16
|
"Without a doubt",
|