diff --git a/.changeset/cozy-wombats-burn.md b/.changeset/cozy-wombats-burn.md new file mode 100644 index 0000000000..e04a363fcd --- /dev/null +++ b/.changeset/cozy-wombats-burn.md @@ -0,0 +1,5 @@ +--- +"@apostrophecms/cli": patch +--- + +Bump and clean up depdendencies. diff --git a/packages/cli/lib/util.js b/packages/cli/lib/util.js index f531f47e77..566b3e75fc 100644 --- a/packages/cli/lib/util.js +++ b/packages/cli/lib/util.js @@ -7,7 +7,7 @@ const util = {}; const _ = require('lodash'); const cliVersion = require('../package.json').version; const confUtils = require('./conf-utils'); -const packageJson = require('package-json'); +const { execSync } = require('child_process'); const semver = require('semver'); const ora = require('ora'); const { spawn } = require('child_process'); @@ -218,7 +218,7 @@ util.spawnWithSpinner = async function (command, options = { async function checkIfUpdated () { try { // Get the latest published version number. - const { version: latest } = await packageJson('@apostrophecms/cli'); + const latest = execSync('npm show @apostrophecms/cli version', { encoding: 'utf8' }).trim(); // Check if they've been notified for this version already. If so, bail out. const latestChecked = await confUtils.getConf('versionNotified'); diff --git a/packages/cli/package.json b/packages/cli/package.json index 25c13dcde7..ff9c72b249 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -23,12 +23,11 @@ "conf": "^6.2.4", "lodash": "^4.18.1", "ora": "^5.4.1", - "package-json": "^6.5.0", "pkginfo": "^0.4.1", "prompts": "^2.3.2", "semver": "^7.3.2", "shell-quote": "^1.8.1", - "shelljs": "~0.3.x", + "shelljs": "^0.10.0", "sync-request": "^6.0.0", "uuid": "^8.0.0" },