mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:37:01 +00: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) {
|
if (clientCore) {
|
||||||
await buildPackage(clientCore, 'es', buildClient);
|
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);
|
await buildPackages(esmPackages, 'es', buildEsm);
|
||||||
|
|
||||||
// plugins/*、samples/*
|
// plugins/*、samples/*
|
||||||
|
@ -49,6 +49,7 @@ export const getCjsPackages = (packages: Package[]) =>
|
|||||||
packages
|
packages
|
||||||
.filter((item) => !PLUGINS_DIR.some((dir) => item.location.startsWith(dir)))
|
.filter((item) => !PLUGINS_DIR.some((dir) => item.location.startsWith(dir)))
|
||||||
.filter((item) => !item.location.startsWith(PRESETS_DIR))
|
.filter((item) => !item.location.startsWith(PRESETS_DIR))
|
||||||
|
.filter((item) => !ESM_PACKAGES.includes(item.name))
|
||||||
.filter((item) => !CJS_EXCLUDE_PACKAGES.includes(item.location));
|
.filter((item) => !CJS_EXCLUDE_PACKAGES.includes(item.location));
|
||||||
|
|
||||||
// tar
|
// tar
|
||||||
|
@ -522,8 +522,7 @@ export async function getCompatible(packageName: string) {
|
|||||||
if (hasSrc) {
|
if (hasSrc) {
|
||||||
try {
|
try {
|
||||||
externalVersion = await getExternalVersionFromSource(packageName);
|
externalVersion = await getExternalVersionFromSource(packageName);
|
||||||
} catch (error) {
|
} catch {
|
||||||
console.log('getExternalVersionFromSource error:', error);
|
|
||||||
hasError = true;
|
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