We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f43969 commit 4d3bde2Copy full SHA for 4d3bde2
src/commands/init.ts
@@ -7,7 +7,8 @@ import type { CommandContext } from "../context.ts";
7
export async function init(ctx: CommandContext) {
8
const [_name = "."] = ctx.args;
9
const cwdUrl = pathToFileURL(`${cwd()}/`);
10
- const name = _name === "." ? new URL("../", cwdUrl).pathname.split("/").filter(Boolean).pop()! : _name;
+ const name =
11
+ _name === "." ? new URL("../", cwdUrl).pathname.split("/").filter(Boolean).pop()! : _name;
12
const dest = new URL("./.temp/", cwdUrl);
13
for await (const line of x("pnpx", ["giget@latest", "gh:bombshell-dev/template", name])) {
14
console.log(line);
0 commit comments