mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
fix: build order bug (#4223)
* fix: build order bug * fix: remove getCompatible error tip * fix: add workflow npmignore
This commit is contained in:
parent
964d631c1d
commit
a293e9e543
@ -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/*
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
@ -0,0 +1,2 @@
|
||||
/node_modules
|
||||
/src
|
Loading…
Reference in New Issue
Block a user