Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 283 Bytes

sch-set-package-dev-dependencies.md

File metadata and controls

9 lines (7 loc) · 283 Bytes

sch-set-package-dev-dependencies

Set devDependencies to package.json

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