fix: build order bug (#4223)

* fix: build order bug

* fix: remove getCompatible error tip

* fix: add workflow npmignore
This commit is contained in:
jack zhang 2024-04-29 19:27:32 +08:00 committed by GitHub
parent 964d631c1d
commit a293e9e543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 24 additions and 3 deletions

View File

@ -53,7 +53,8 @@ export async function build(pkgs: string[]) {
if (clientCore) {
await buildPackage(clientCore, 'es', buildClient);
}
const esmPackages = cjsPackages.filter(pkg => ESM_PACKAGES.includes(pkg.name));
const esmPackages = packages.filter(pkg => ESM_PACKAGES.includes(pkg.name));
await buildPackages(esmPackages, 'lib', buildCjs);
await buildPackages(esmPackages, 'es', buildEsm);
// plugins/*、samples/*

View File

@ -49,6 +49,7 @@ export const getCjsPackages = (packages: Package[]) =>
packages
.filter((item) => !PLUGINS_DIR.some((dir) => item.location.startsWith(dir)))
.filter((item) => !item.location.startsWith(PRESETS_DIR))
.filter((item) => !ESM_PACKAGES.includes(item.name))
.filter((item) => !CJS_EXCLUDE_PACKAGES.includes(item.location));
// tar

View File

@ -522,8 +522,7 @@ export async function getCompatible(packageName: string) {
if (hasSrc) {
try {
externalVersion = await getExternalVersionFromSource(packageName);
} catch (error) {
console.log('getExternalVersionFromSource error:', error);
} catch {
hasError = true;
}
}

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src

View File

@ -0,0 +1,2 @@
/node_modules
/src