Skip to content

Commit

Permalink
fix: cli init gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkenos committed Dec 11, 2023
1 parent 93f7616 commit 1499d3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/cli/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ To run your tests:

export function init() {
const source = path.join(__dirname, "../", "resources");
const target = process.cwd();
const target = path.join(process.cwd(), "samples");

const ignoreSource = path.join(target, "ignore.tpl");
const ignoretarget = path.join(target, ".gitignore");

process.stdout.write("Creating files...");
fs.copySync(source, target);
fs.moveSync(ignoreSource, ignoretarget);
console.log(SUCCESS_MESSAGE.trim());
}
File renamed without changes.

0 comments on commit 1499d3a

Please sign in to comment.