Skip to content
Permalink
Browse files

chore: update all package.json refs to match top level package.json

  • Loading branch information
MarshallOfSound committed Nov 24, 2018
1 parent 06c4602 commit 07fc2aa4e04208e1a28641e06683acc06e68223d
@@ -20,7 +20,7 @@
"@electron-forge/core": "6.0.0-beta.30",
"colors": "^1.2.0",
"commander": "^2.9.0",
"debug": "^3.0.0",
"debug": "^4.1.0",
"fs-extra": "^7.0.0",
"inquirer": "^6.2.0",
"semver": "^5.3.0"
@@ -20,10 +20,10 @@
"asar": "^0.14.0",
"chai": "4.2.0",
"chai-as-promised": "^7.0.0",
"fetch-mock": "^6.0.0",
"fetch-mock": "^7.2.5",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"dependencies": {
"@electron-forge/async-ora": "6.0.0-beta.30",
@@ -39,7 +39,7 @@
"@electron-forge/shared-types": "6.0.0-beta.30",
"colors": "^1.2.0",
"cross-spawn-promise": "^0.10.1",
"debug": "^3.0.0",
"debug": "^4.1.0",
"electron-packager": "^12.0.1",
"electron-rebuild": "^1.6.0",
"fs-extra": "^7.0.0",
@@ -16,7 +16,7 @@
"dependencies": {
"@electron-forge/installer-darwin": "6.0.0-beta.30",
"cross-spawn-promise": "^0.10.1",
"debug": "^3.0.0",
"debug": "^4.1.0",
"fs-extra": "^7.0.0"
}
}
@@ -23,6 +23,6 @@
"pify": "^4.0.0"
},
"optionalDependencies": {
"electron-windows-store": "^0.12.0"
"electron-windows-store": "^2.1.0"
}
}
@@ -12,7 +12,7 @@
"chai-as-promised": "^7.0.0",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"engines": {
"node": ">= 6.0"
@@ -12,7 +12,7 @@
"chai-as-promised": "^7.0.0",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"engines": {
"node": ">= 6.0"
@@ -12,7 +12,7 @@
"chai-as-promised": "^7.0.0",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"engines": {
"node": ">= 6.0"
@@ -12,7 +12,7 @@
"chai-as-promised": "^7.0.0",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"engines": {
"node": ">= 6.0"
@@ -12,7 +12,7 @@
"chai-as-promised": "^7.0.0",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"engines": {
"node": ">= 6.0"
@@ -17,6 +17,6 @@
"dependencies": {
"@electron-forge/maker-base": "6.0.0-beta.30",
"@electron-forge/shared-types": "6.0.0-beta.30",
"electron-wix-msi": "^1.3.0"
"electron-wix-msi": "^2.1.1"
}
}
@@ -17,7 +17,7 @@
"@electron-forge/shared-types": "6.0.0-beta.30",
"@electron-forge/web-multi-logger": "6.0.0-beta.30",
"cross-spawn-promise": "^0.10.1",
"debug": "^3.0.0",
"debug": "^4.1.0",
"express": "4.16.4",
"fs-extra": "^7.0.0",
"global": "^4.3.2",
@@ -18,7 +18,7 @@
"@electron-forge/async-ora": "6.0.0-beta.30",
"@electron-forge/publisher-base": "6.0.0-beta.30",
"@electron-forge/shared-types": "6.0.0-beta.30",
"debug": "^3.0.0",
"debug": "^4.1.0",
"form-data": "2.3.3",
"fs-extra": "^7.0.0",
"node-fetch": "^2.0.0"
@@ -18,7 +18,7 @@
"@electron-forge/async-ora": "6.0.0-beta.30",
"@electron-forge/publisher-base": "6.0.0-beta.30",
"@electron-forge/shared-types": "6.0.0-beta.30",
"@octokit/rest": "^15.2.6",
"@octokit/rest": "^16.0.1",
"fs-extra": "^7.0.0",
"lodash.merge": "^4.6.0",
"mime-types": "2.1.21"
@@ -18,7 +18,7 @@
"@electron-forge/async-ora": "6.0.0-beta.30",
"@electron-forge/publisher-base": "6.0.0-beta.30",
"@electron-forge/shared-types": "6.0.0-beta.30",
"debug": "^3.0.0",
"debug": "^4.1.0",
"form-data": "2.3.3",
"node-fetch": "^2.0.0"
}
@@ -19,7 +19,7 @@
"@electron-forge/publisher-base": "6.0.0-beta.30",
"@electron-forge/shared-types": "6.0.0-beta.30",
"aws-sdk": "^2.9.0",
"debug": "^3.0.0",
"debug": "^4.1.0",
"s3": "^4.4.0"
}
}
@@ -12,14 +12,14 @@
"chai": "4.2.0",
"mocha": "^5.0.0",
"proxyquire": "^2.0.1",
"sinon": "^6.1.5"
"sinon": "^7.1.1"
},
"dependencies": {
"colors": "^1.2.0",
"debug": "^3.0.0",
"debug": "^4.1.0",
"log-symbols": "^2.0.0",
"ora": "^3.0.0",
"pretty-ms": "^3.2.0"
"pretty-ms": "^4.0.0"
},
"engines": {
"node": ">= 6.0"
@@ -0,0 +1,34 @@
import * as fs from 'fs-extra';
import * as path from 'path';

import { getPackageInfo } from './utils';

(async() => {
const packages = await getPackageInfo();

const baseJson = await fs.readJson(path.resolve(__dirname, '..', 'package.json'));

const allDeps = { ...baseJson.dependencies, ...baseJson.devDependencies, ...baseJson.optionalDependencies };

for (const p of packages) {
const json = await fs.readJson(path.resolve(p.path, 'package.json'));

for (const key of ['dependencies', 'devDependencies', 'optionalDependencies']) {
const deps = json[key];
if (!deps) continue;

for (const depKey in deps) {
if (depKey.startsWith('@electron-forge/')) continue;

if (deps[depKey] !== allDeps[depKey]) {
console.error(p.name, depKey, deps[depKey], '-->', allDeps[depKey]);
deps[depKey] = allDeps[depKey]
}
}
}

await fs.writeJson(path.resolve(p.path, 'package.json'), json, {
spaces: 2,
});
}
})().catch(console.error);

0 comments on commit 07fc2aa

Please sign in to comment.
You can’t perform that action at this time.