create-skybridge 0.0.0-dev.a8c5b9c → 0.0.0-dev.a9b117b

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 CHANGED
@@ -23,7 +23,7 @@ Examples:
23
23
  `;
24
24
  export async function init(args = process.argv.slice(2)) {
25
25
  const argv = mri(args, {
26
- boolean: ["help", "overwrite"],
26
+ boolean: ["help", "overwrite", "immediate"],
27
27
  alias: { h: "help" },
28
28
  });
29
29
  const argTargetDir = argv._[0]
@@ -52,8 +52,9 @@ export async function init(args = process.argv.slice(2)) {
52
52
  : "Invalid project name";
53
53
  },
54
54
  });
55
- if (prompts.isCancel(projectName))
55
+ if (prompts.isCancel(projectName)) {
56
56
  return cancel();
57
+ }
57
58
  targetDir = sanitizeTargetDir(projectName);
58
59
  }
59
60
  else {
@@ -81,8 +82,9 @@ export async function init(args = process.argv.slice(2)) {
81
82
  },
82
83
  ],
83
84
  });
84
- if (prompts.isCancel(res))
85
+ if (prompts.isCancel(res)) {
85
86
  return cancel();
87
+ }
86
88
  overwrite = res;
87
89
  }
88
90
  else {
@@ -149,7 +151,7 @@ export async function init(args = process.argv.slice(2)) {
149
151
  ${installCmd.join(" ")}
150
152
  ${runCmd.join(" ")}
151
153
  `);
152
- return cancel();
154
+ return;
153
155
  }
154
156
  // check if pnpm is installed
155
157
  const result = spawnSync("pnpm", ["--version"], { encoding: "utf-8" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skybridge",
3
- "version": "0.0.0-dev.a8c5b9c",
3
+ "version": "0.0.0-dev.a9b117b",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Alpic",
@@ -5,7 +5,9 @@ import { useToolInfo } from "../helpers";
5
5
 
6
6
  function Magic8Ball() {
7
7
  const { input, output } = useToolInfo<"magic-8-ball">();
8
- if (!output) return <div>Shaking...</div>;
8
+ if (!output) {
9
+ return <div>Shaking...</div>;
10
+ }
9
11
 
10
12
  return (
11
13
  <div className="container">