mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-08 06:59:26 +08:00
feat: add compatibility code
This commit is contained in:
parent
d2a252b5ba
commit
003ae7338a
@ -42,7 +42,7 @@
|
||||
"react-imported-component": "^6.5.4",
|
||||
"style-loader": "^3.3.3",
|
||||
"tar": "^6.2.0",
|
||||
"tsup": "^8.4.0",
|
||||
"tsup": "8.2.4",
|
||||
"typescript": "5.1.3",
|
||||
"update-notifier": "3.0.0",
|
||||
"vite-plugin-css-injected-by-js": "^3.2.1",
|
||||
|
@ -665,7 +665,8 @@ __webpack_require__.p = (function() {
|
||||
}
|
||||
|
||||
export async function buildPlugin(cwd: string, userConfig: UserConfig, sourcemap: boolean, log: PkgLog) {
|
||||
if (cwd.includes('/pro-plugins/') && !cwd.includes('plugin-commercial')) {
|
||||
log('buildPlugin', process.cwd(), cwd, fs.existsSync(path.join(process.cwd(), 'packages/pro-plugins')));
|
||||
if (cwd.includes('/pro-plugins/') && !cwd.includes('plugin-commercial') && fs.existsSync(path.join(process.cwd(), 'packages/pro-plugins/@nocobase/plugin-commercial'))) {
|
||||
await buildPluginClient(cwd, userConfig, sourcemap, log, true);
|
||||
await buildProPluginServer(cwd, userConfig, sourcemap, log);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user