From 8416bd2f648ebe11e7594582f43d06d5b8d19003 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Fri, 7 Feb 2020 08:36:36 +0100 Subject: [PATCH] update node snippet to use yarn --- snippets/node/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/node/index.js b/snippets/node/index.js index dfa7ea6..06bb55f 100644 --- a/snippets/node/index.js +++ b/snippets/node/index.js @@ -41,11 +41,11 @@ async function run (folder, args) { { cwd: snip_folder, stdio: 'inherit' } ); child_process.execSync ( - 'npm init -y', + 'yarn init -y', { cwd: snip_folder, stdio: 'inherit' } ); child_process.execSync ( - 'npm i --save-dev @scode/eslint-config eslint', + 'yarn add --dev @scode/eslint-config eslint', { cwd: snip_folder, stdio: 'inherit' } );