Skip to content

Commit 5401cb9

Browse files
committed
fix
1 parent 0ef0e4e commit 5401cb9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/tasks.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ task("noir-new", "Create a new Noir package")
9191
);
9292
}
9393

94-
const newPath = path.join(config.paths.noir, args.name);
95-
const srcPath = path.join(newPath, "src");
96-
fs.mkdirSync(srcPath, { recursive: true });
97-
9894
const nargoBinary = await installNargo(config.noir.version);
9995
const runCommand = makeRunCommand(config.paths.noir);
10096
fs.mkdirSync(config.paths.noir, { recursive: true });
@@ -111,7 +107,9 @@ task("noir-new", "Create a new Noir package")
111107
};
112108
rootNargo.workspace ??= {};
113109
rootNargo.workspace.members ??= [];
114-
rootNargo.workspace.members.push(args.name);
110+
if (!rootNargo.workspace.members.includes(args.name)) {
111+
rootNargo.workspace.members.push(args.name);
112+
}
115113
fs.writeFileSync(rootNargoPath, toml.stringify(rootNargo));
116114
}
117115
});

0 commit comments

Comments
 (0)