Skip to content

Commit a5e1a4a

Browse files
authored
Bump CLI dependencies (#5383)
1 parent 96cf174 commit a5e1a4a

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎.changeset/cozy-wombats-burn.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apostrophecms/cli": patch
3+
---
4+
5+
Bump and clean up depdendencies.

‎packages/cli/lib/util.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const util = {};
77
const _ = require('lodash');
88
const cliVersion = require('../package.json').version;
99
const confUtils = require('./conf-utils');
10-
const packageJson = require('package-json');
10+
const { execSync } = require('child_process');
1111
const semver = require('semver');
1212
const ora = require('ora');
1313
const { spawn } = require('child_process');
@@ -218,7 +218,7 @@ util.spawnWithSpinner = async function (command, options = {
218218
async function checkIfUpdated () {
219219
try {
220220
// Get the latest published version number.
221-
const { version: latest } = await packageJson('@apostrophecms/cli');
221+
const latest = execSync('npm show @apostrophecms/cli version', { encoding: 'utf8' }).trim();
222222

223223
// Check if they've been notified for this version already. If so, bail out.
224224
const latestChecked = await confUtils.getConf('versionNotified');

‎packages/cli/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@
2323
"conf": "^6.2.4",
2424
"lodash": "^4.18.1",
2525
"ora": "^5.4.1",
26-
"package-json": "^6.5.0",
2726
"pkginfo": "^0.4.1",
2827
"prompts": "^2.3.2",
2928
"semver": "^7.3.2",
3029
"shell-quote": "^1.8.1",
31-
"shelljs": "~0.3.x",
30+
"shelljs": "^0.10.0",
3231
"sync-request": "^6.0.0",
3332
"uuid": "^8.0.0"
3433
},

0 commit comments

Comments
 (0)