mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-02 03:37:57 +08:00
build: 修复构建问题
This commit is contained in:
parent
e2c6cd085f
commit
c003aed099
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user