mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 16:36:56 +00:00
fix(build): isPluginPackage
This commit is contained in:
parent
dea4c6f9c7
commit
31f01dd004
@ -103,7 +103,7 @@ function isPluginPackage(name: string) {
|
|||||||
const prefixes = (process.env.PLUGIN_PACKAGE_PREFIX || '').split(',');
|
const prefixes = (process.env.PLUGIN_PACKAGE_PREFIX || '').split(',');
|
||||||
for (const prefix of prefixes) {
|
for (const prefix of prefixes) {
|
||||||
if (prefix.includes('preset')) {
|
if (prefix.includes('preset')) {
|
||||||
return false;
|
continue;
|
||||||
}
|
}
|
||||||
if (name.startsWith(prefix)) {
|
if (name.startsWith(prefix)) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user