Skip to content
Permalink
Browse files

chore: add missing files from 6.0.0-beta.1

  • Loading branch information
MarshallOfSound committed Apr 16, 2018
1 parent be2ee7a commit 24cdcb5566f497eaedc149c17b38286a896b49e6
Showing with 33 additions and 9 deletions.
  1. +11 −0 CHANGELOG.md
  2. +1 −0 package.json
  3. +21 −9 tools/bump.js
@@ -1,3 +1,14 @@
#### 6.0.0-beta.1 (2018-04-16)

##### Chores

* **generic:** upgrade to Electron Packager 12 (#478) ([cd4161a5](https://github.com/electron-userland/electron-forge/commit/cd4161a5))

##### New Features

* **core:** V6 API (#433) ([364ba8d8](https://github.com/electron-userland/electron-forge/commit/364ba8d8))
* **generic:** remove electron-compile, make forge less opinionated and quite vanilla ([d59695ec](https://github.com/electron-userland/electron-forge/commit/d59695ec))

#### [5.1.1](https://github.com/electron-userland/electron-forge/releases/tag/v5.1.1) (2018-02-15)

##### Chores
@@ -1,5 +1,6 @@
{
"name": "electron-forge",
"version": "6.0.0-beta.1",
"private": true,
"license": "MIT",
"bolt": {
@@ -25,24 +25,36 @@ const PACKAGES_DIR = path.resolve(BASE_DIR, 'packages');
console.info(`Setting version of all dependencies: ${version.cyan}`)
const packages = [];

let lastVersion;
const dirsToUpdate = [BASE_DIR];

for (const subDir of await fs.readdir(PACKAGES_DIR)) {
for (const packageDir of await fs.readdir(path.resolve(PACKAGES_DIR, subDir))) {
const absPackageDir = path.resolve(PACKAGES_DIR, subDir, packageDir);
const existingPJ = await fs.readJson(path.resolve(absPackageDir, 'package.json'));
existingPJ.version = version;
await fs.writeJson(path.resolve(absPackageDir, 'package.json'), existingPJ, {
spaces: 2,
});
childProcess.execSync(`git add "${path.relative(BASE_DIR, absPackageDir)}"`, {
cwd: BASE_DIR,
});
dirsToUpdate.push(path.resolve(PACKAGES_DIR, subDir, packageDir));
}
}

for (const dir of dirsToUpdate) {
const pjPath = path.resolve(dir, 'package.json');
const existingPJ = await fs.readJson(pjPath);
existingPJ.version = version;
await fs.writeJson(pjPath, existingPJ, {
spaces: 2,
});
childProcess.execSync(`git add "${path.relative(BASE_DIR, pjPath)}"`, {
cwd: BASE_DIR,
});
lastVersion = existingPJ.version;
}

childProcess.execSync(`git commit -m "Version Bump: ${version}"`, {
cwd: BASE_DIR,
});
childProcess.execSync(`git tag v${version}`, {
cwd: BASE_DIR,
});
childProcess.execSync(`node_modules/.bin/changelog --tag=v${lastVersion}`, {
cwd: BASE_DIR,
});
require('../ci/fix-changelog');
})().catch(console.error);

0 comments on commit 24cdcb5

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