feat: add pro-plugins dir

This commit is contained in:
chenos 2023-11-02 10:25:21 +08:00
parent 979fc03a57
commit 4bb6ed4813

View File

@ -26,7 +26,7 @@ export const EsbuildSupportExts = [
]; ];
export const ROOT_PATH = path.join(__dirname, '../../../../'); export const ROOT_PATH = path.join(__dirname, '../../../../');
export const PACKAGES_PATH = path.join(ROOT_PATH, 'packages'); export const PACKAGES_PATH = path.join(ROOT_PATH, 'packages');
export const PLUGINS_DIR = ['plugins', 'samples'] export const PLUGINS_DIR = ['plugins', 'samples', 'pro-plugins']
.concat((process.env.PLUGINS_DIRS || '').split(',')) .concat((process.env.PLUGINS_DIRS || '').split(','))
.filter(Boolean) .filter(Boolean)
.map((name) => path.join(PACKAGES_PATH, name)); .map((name) => path.join(PACKAGES_PATH, name));