Created
November 9, 2020 16:04
-
-
Save RobertFischer/f3981f9a7b413e973788cf8da6ab8de8 to your computer and use it in GitHub Desktop.
Release Rules for a Package in a Monorepo
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
"use strict"; | |
const _ = require("lodash"); | |
const defaultRules = require("@semantic-release/commit-analyzer/lib/default-release-rules"); | |
const scope = require(`${__dirname}/package.json`).name; // You may want to remove whatever's before a "/" in the name. | |
module.exports = _.map( | |
(defaultRules), | |
(defaultRule) => { | |
return { | |
...defaultRule, | |
scope | |
}; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment