GregBrimble/cf-workers-dashboard

View on GitHub
updatePackages.js

Summary

Maintainability
A
0 mins
Test Coverage
const ncu = require("npm-check-updates");

const packageFiles = [
  "package.json",
  "packages/client/package.json",
  "packages/server/package.json",
  "packages/worker/package.json",
];

packageFiles.map((packageFile) => {
  ncu
    .run({ upgrade: true, packageFile })
    .then(() => console.log(`Updated ${packageFile}`));
});