A CLI for scaffolding ATProto web applications
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

for some reason these files were missing

+12 -12
+11 -11
__tests__/cli.test.ts
··· 5 5 const CLI_PATH = join(import.meta.dirname, ".."); 6 6 7 7 async function run(args: string[], input = "\n") { 8 - const proc = child_process.spawn( 9 - "node", 10 - [CLI_PATH, ...args], 11 - { stdio: ["pipe", "pipe", "pipe"] } 12 - ); 8 + const proc = child_process.spawn("node", [CLI_PATH, ...args], { 9 + stdio: ["pipe", "pipe", "pipe"], 10 + }); 13 11 14 12 let stdout = ""; 15 13 let stderr = ""; ··· 24 22 proc.stdin?.write(input); 25 23 proc.stdin?.end(); 26 24 27 - return new Promise<{ stdout: string; stderr: string; code: number | null }>((resolve, reject) => { 28 - proc.on("close", (code) => { 29 - resolve({ stdout, stderr, code }); 30 - }); 31 - proc.on("error", reject); 32 - }); 25 + return new Promise<{ stdout: string; stderr: string; code: number | null }>( 26 + (resolve, reject) => { 27 + proc.on("close", (code) => { 28 + resolve({ stdout, stderr, code }); 29 + }); 30 + proc.on("error", reject); 31 + }, 32 + ); 33 33 } 34 34 35 35 test("should prompt for project name", async () => {
+1 -1
index.js
··· 1 1 #!/usr/bin/env node 2 2 3 - import './dist/index.js' 3 + import "./dist/index.js";