@nocobase/build 2.1.0-beta.43 → 2.1.0-beta.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,7 +173,7 @@ const external = [
173
173
  "@langchain/ollama",
174
174
  "@langchain/mcp-adapters"
175
175
  ];
176
- const pluginPrefix = (process.env.PLUGIN_PACKAGE_PREFIX || "@nocobase/plugin-,@nocobase/preset-,@nocobase/plugin-pro-").split(",");
176
+ const pluginPrefix = (process.env.PLUGIN_PACKAGE_PREFIX || "@nocobase/plugin-,@nocobase/preset-").split(",");
177
177
  const target_dir = "dist";
178
178
  function appendAiFiles(cwd, files) {
179
179
  const aiFiles = import_fast_glob.default.globSync(["src/ai/**/*.md"], { cwd, absolute: true });
@@ -41,15 +41,17 @@ if (!publicPath) {
41
41
  }
42
42
  }
43
43
  if (!publicPath) {
44
+ var modernPrefix = window['__nocobase_modern_client_prefix__'] || 'v';
45
+ modernPrefix = String(modernPrefix).replace(/^\\/+|\\/+$/g, '') || 'v';
46
+ var marker = '/' + modernPrefix + '/';
44
47
  publicPath = window['__nocobase_public_path__'] || '';
45
48
  if (!publicPath && window.location && window.location.pathname) {
46
- var marker = '/v2/';
47
49
  var pathname = window.location.pathname || '/';
48
50
  var index = pathname.indexOf(marker);
49
51
  publicPath = index >= 0 ? pathname.slice(0, index + 1) : '/';
50
52
  }
51
53
  if (publicPath) {
52
- publicPath = publicPath.replace(/\\/v2\\/?$/, '/');
54
+ publicPath = publicPath.replace(new RegExp('/' + modernPrefix + '/?$'), '/');
53
55
  }
54
56
  if (!publicPath) {
55
57
  publicPath = '/';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/build",
3
- "version": "2.1.0-beta.43",
3
+ "version": "2.1.0-beta.45",
4
4
  "description": "Library build tool based on rollup.",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -53,5 +53,5 @@
53
53
  "build": "tsup",
54
54
  "build:watch": "tsup --watch"
55
55
  },
56
- "gitHead": "6d7750e2373bf2451d246de88cc1f62491685e18"
56
+ "gitHead": "42587115fc34c3eb01ef2b2549f1c998e5708318"
57
57
  }