forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: master version in lerna.json (instead of root package.json) (a…
…ws#6445) * chore: master version in lerna.json (instead of root package.json) Use lerna.json to master the repo version instead of the root package.json. Move standard-version configuration to .versionrc.json and consult it when aligning the repo version to determine where the version is mastered. * scripts/get-version returns the current repo version, and reused by align-version. then we can use it in our AutoBump build project instead of hard-coding the fact that lerna.json is where we master the version. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
efef1b8
commit b04accc
Showing
8 changed files
with
148 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"skip": { "tag": true }, | ||
"packageFiles": [ { "filename": "lerna.json", "type": "json" } ], | ||
"bumpFiles": [ { "filename": "lerna.json", "type": "json" } ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,5 @@ | |
"tools/*" | ||
], | ||
"rejectCycles": "true", | ||
"version": "999.0.0" | ||
"version": "1.25.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Returns the current repo version. | ||
* | ||
* Usage: | ||
* | ||
* const version = require('./get-version'); | ||
* | ||
* Or from the command line: | ||
* | ||
* node -p require('./get-version') | ||
* | ||
*/ | ||
const versionFile = require('../.versionrc.json').packageFiles[0].filename; | ||
if (!versionFile) { | ||
throw new Error(`unable to determine version filename from .versionrc.json at the root of the repo`); | ||
} | ||
|
||
module.exports = require(`../${versionFile}`).version; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters