update node snippet to use yarn

This commit is contained in:
Timo Hocker 2020-02-07 08:36:36 +01:00
parent 4fcc3bdb4c
commit 8416bd2f64

View File

@ -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' }
);