Skip to content

Commit

Permalink
build: 修复构建问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wanchun committed May 17, 2022
1 parent 9d7b4e4 commit 6c4d31d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,14 @@ const isChangeInCurrentTag = async (pkg, newestTag) => {
const filterChangedPackages = async () => {
const { stdout: newestTag } = await run('git', ['describe', '--abbrev=0', '--tags'], { stdio: 'pipe' });

return packages.filter(async (pkg) => {
const result = await isChangeInCurrentTag(pkg, newestTag);
return result;
});
const results = await Promise.all(
packages.map(async (pkg) => {
const result = await isChangeInCurrentTag(pkg, newestTag);
return result;
}),
);

return packages.filter((_v, index) => results[index]);
};

async function createPackageNewVersion(pkg) {
Expand Down

0 comments on commit 6c4d31d

Please sign in to comment.