Skip to content

Commit

Permalink
Fix bug with new init
Browse files Browse the repository at this point in the history
  • Loading branch information
skymen committed Jan 19, 2025
1 parent 14a8f5c commit 879d46f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions build/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import * as chalkUtils from "./chalkUtils.js";
import fromConsole from "./fromConsole.js";

export default function initialiseProject() {
let process = exec("npm run updateProjectData");
process.stdout.pipe(process.stdout);
process.stderr.pipe(process.stderr);
process.on("exit", () => {
let process1 = exec("npm run updateProjectData");
process1.stdout.pipe(process.stdout);
process1.stderr.pipe(process.stderr);
process1.on("exit", () => {
if (!fs.existsSync(".git")) {
let process2 = exec(
"git init && git add -A && git commit -m 'Initial commit'"
);
process2.stdout.pipe(process2.stdout);
process2.stderr.pipe(process2.stderr);
process2.stdout.pipe(process.stdout);
process2.stderr.pipe(process.stderr);
process2.on("exit", () => {
open("https://github.com/new");
});
Expand Down

0 comments on commit 879d46f

Please sign in to comment.