diff --git a/snippets/node/index.js b/snippets/node/index.js index fe31889..0de79ed 100644 --- a/snippets/node/index.js +++ b/snippets/node/index.js @@ -52,6 +52,12 @@ async function run (folder, args) { path.join (snip_folder, 'package.json'), JSON.stringify (package_json, null, 2) ); + + await fs.writeFile ( + path.join (snip_folder, '.gitignore'), + `/node_modules/ +/dist/` + ); } /** diff --git a/snippets/node/template/.gitignore b/snippets/node/template/.gitignore deleted file mode 100644 index b0a5c34..0000000 --- a/snippets/node/template/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/node_modules/ -/dist/