diff --git a/pkg-update.js b/pkg-update.js index 33d2d20..a452af8 100644 --- a/pkg-update.js +++ b/pkg-update.js @@ -1,4 +1,2 @@ -const fs = require('fs'); -const { spawn } = require('child_process'); -const packageInfo = JSON.parse(fs.readFileSync("./package.json")); -spawn('npm', ['install', '--save-dev', ...Object.keys(packageInfo.devDependencies)], {stdio: 'inherit', detached: true}); \ No newline at end of file +const json = JSON.parse(require('fs').readFileSync("package.json")); +require('child_process').spawn('npm', ['i', '-D', ...Object.keys(json.devDependencies)], {stdio: 'inherit', detached: true}); \ No newline at end of file