Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 255 Bytes

sch-set-package-scripts.md

File metadata and controls

9 lines (7 loc) · 255 Bytes

sch-set-package-scripts

Set script to package.json

const content = JSON.parse(tree.read('package.json')!.toString('UTF-8'));
content.scripts['${1:alias}'] = '${2:command}';
tree.overwrite('package.json', JSON.stringify(content, null, 2));