@brillout/release-me
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -66,4 +66,4 @@ "use strict"; | ||
const gitTagPrefix = args.gitTagPrefix ? `${args.gitTagPrefix}@` : 'v'; | ||
await changelog(monorepoRootDir, packageRootDir, gitTagPrefix); | ||
await showPreview(pkg, monorepoRootDir, packageRootDir); | ||
await changelog(packageRootDir, gitTagPrefix); | ||
await showPreview(pkg, packageRootDir); | ||
await askConfirmation(); | ||
@@ -161,3 +161,3 @@ if (!args.dev) { | ||
} | ||
async function changelog(monorepoRootDir, packageRootDir, gitTagPrefix) { | ||
async function changelog(packageRootDir, gitTagPrefix) { | ||
const readable = (0, conventional_changelog_1.default)({ | ||
@@ -177,3 +177,3 @@ preset: 'angular', | ||
const changelog = await streamToString(readable); | ||
prerendFile(getChangeLogPath(monorepoRootDir, packageRootDir), changelog); | ||
prerendFile(getChangeLogPath(packageRootDir), changelog); | ||
/* | ||
@@ -220,8 +220,8 @@ // Usage examples: | ||
} | ||
function getChangeLogPath(monorepoRootDir, packageRootDir) { | ||
return path.join(monorepoRootDir, packageRootDir, 'CHANGELOG.md'); | ||
function getChangeLogPath(packageRootDir) { | ||
return path.join(packageRootDir, 'CHANGELOG.md'); | ||
} | ||
async function showPreview(pkg, monorepoRootDir, packageRootDir) { | ||
async function showPreview(pkg, packageRootDir) { | ||
await showCmd('git status'); | ||
await diffAndLog(getChangeLogPath(monorepoRootDir, packageRootDir)); | ||
await diffAndLog(getChangeLogPath(packageRootDir)); | ||
await diffAndLog(path.join(pkg.packageDir, 'package.json')); | ||
@@ -228,0 +228,0 @@ async function diffAndLog(filePath) { |
{ | ||
"name": "@brillout/release-me", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"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
25294