Files
typescript-domain/pkg-update.js
2022-11-14 21:18:10 +01:00

2 lines
222 B
JavaScript

const json = JSON.parse(require('fs').readFileSync("package.json"));
require('child_process').spawn('npm.cmd', ['i', '-D', ...Object.keys(json.devDependencies).map(x => `${x}@latest`)], {stdio: 'inherit', detached: true});