Skip to content

Commit

Permalink
chore: add missing files from 6.0.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Apr 16, 2018
1 parent be2ee7a commit 24cdcb5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 9 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "electron-forge",
"version": "6.0.0-beta.1",
"private": true,
"license": "MIT",
"bolt": {
Expand Down
30 changes: 21 additions & 9 deletions tools/bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.