@pie-framework/build-helper
Advanced tools
Comparing version 4.3.1 to 4.3.2
@@ -17,3 +17,3 @@ /// <reference types="node" /> | ||
afterPublish(): Promise<any>; | ||
changelog(): Promise<void[]>; | ||
changelog(): Promise<string[]>; | ||
release(): Promise<void>; | ||
@@ -20,0 +20,0 @@ build(): Promise<void>; |
@@ -124,12 +124,16 @@ "use strict"; | ||
changelog() { | ||
const packagesDir = path_1.join(this.projectRoot, 'packages'); | ||
const allPackages = changelog_1.getPackages(packagesDir); | ||
const packages = this.args.scope | ||
? allPackages.filter(p => path_1.basename(p.dir) === this.args.scope) | ||
: allPackages; | ||
return series_1.series(packages.map(pkg => () => __awaiter(this, void 0, void 0, function* () { | ||
const clPath = yield changelog_1.writeChangelogJsonForPackage(pkg, false); | ||
yield changelog_1.writeChangelogJsonForPackage(pkg, true); | ||
yield this.commit([clPath], `[travis skip] update changelog.json for ${pkg.pkg.name}`); | ||
}))); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const packagesDir = path_1.join(this.projectRoot, 'packages'); | ||
const allPackages = changelog_1.getPackages(packagesDir); | ||
const packages = this.args.scope | ||
? allPackages.filter(p => path_1.basename(p.dir) === this.args.scope) | ||
: allPackages; | ||
const paths = yield series_1.series(packages.map(pkg => () => __awaiter(this, void 0, void 0, function* () { | ||
const clPath = yield changelog_1.writeChangelogJsonForPackage(pkg, false); | ||
yield changelog_1.writeChangelogJsonForPackage(pkg, true); | ||
return clPath; | ||
}))); | ||
yield this.commit(paths, `[ci skip] update changelog.json`); | ||
return paths; | ||
}); | ||
} | ||
@@ -136,0 +140,0 @@ release() { |
{ | ||
"name": "@pie-framework/build-helper", | ||
"version": "4.3.1", | ||
"version": "4.3.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
268161
749