@brillout/release-me
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -66,3 +66,3 @@ "use strict"; | ||
const gitTagPrefix = args.gitTagPrefix ? `${args.gitTagPrefix}@` : 'v'; | ||
await changelog(packageRootDir, gitTagPrefix); | ||
await changelog(monorepoRootDir, packageRootDir, gitTagPrefix); | ||
await showPreview(pkg, packageRootDir); | ||
@@ -161,3 +161,3 @@ await askConfirmation(); | ||
} | ||
async function changelog(packageRootDir, gitTagPrefix) { | ||
async function changelog(monorepoRootDir, packageRootDir, gitTagPrefix) { | ||
const readable = (0, conventional_changelog_1.default)({ | ||
@@ -170,3 +170,6 @@ preset: 'angular', | ||
// - https://github.com/conventional-changelog/conventional-changelog/issues/556#issuecomment-555539998 | ||
path: packageRootDir, | ||
path: isSamePath(monorepoRootDir, packageRootDir) | ||
? // Set to `undefined` in order to enable empty release commits (e.g. `fix: `). | ||
undefined | ||
: packageRootDir, | ||
}, { | ||
@@ -452,1 +455,12 @@ // Skip revert commits. | ||
} | ||
function isSamePath(p1, p2) { | ||
p1 = path.normalize(p1); | ||
p2 = path.normalize(p2); | ||
(0, assert_1.default)(!p1.includes('\\')); | ||
(0, assert_1.default)(!p2.includes('\\')); | ||
(0, assert_1.default)(p1.startsWith('/')); | ||
(0, assert_1.default)(p2.startsWith('/')); | ||
(0, assert_1.default)(!p1.endsWith('/')); | ||
(0, assert_1.default)(!p2.endsWith('/')); | ||
return p1 === p2; | ||
} |
{ | ||
"name": "@brillout/release-me", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "// === Dev ===": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25897
613