@nocobase/build 2.1.0-alpha.15 → 2.1.0-alpha.17

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.
package/lib/build.js CHANGED
@@ -58,6 +58,15 @@ async function build(pkgs) {
58
58
  if (process.argv.includes("--retry") && cachePkg?.pkg) {
59
59
  packages = packages.slice(packages.findIndex((item) => item.name === cachePkg.pkg));
60
60
  }
61
+ const cliPackages = packages.find((item) => item.name === "@nocobase/cli");
62
+ if (cliPackages) {
63
+ const log = (0, import_utils.getPkgLog)(cliPackages.name);
64
+ log('running package script "build" (clean + tsc)');
65
+ await (0, import_utils.runScript)(["build"], cliPackages.location);
66
+ if (packages.length === 1) {
67
+ return;
68
+ }
69
+ }
61
70
  if (packages.length === 0) {
62
71
  let msg = "";
63
72
  if (pkgs.length) {
@@ -555,7 +555,7 @@ async function buildPluginClient(cwd, userConfig, sourcemap, log, lane = "client
555
555
  output: {
556
556
  path: outDir,
557
557
  filename: outputFileName,
558
- chunkFilename: "[chunkhash].js",
558
+ chunkFilename: "[name].[contenthash].js",
559
559
  publicPath: `auto`,
560
560
  // will be generated by the custom plugin
561
561
  clean: true,
package/lib/constant.js CHANGED
@@ -95,6 +95,7 @@ const CORE_CLIENT_V2 = import_path.default.join(PACKAGES_PATH, "core/client-v2")
95
95
  const ESM_PACKAGES = ["@nocobase/client-v2", "@nocobase/test"];
96
96
  const CJS_EXCLUDE_PACKAGES = [
97
97
  import_path.default.join(PACKAGES_PATH, "core/build"),
98
+ import_path.default.join(PACKAGES_PATH, "core/cli-v1"),
98
99
  import_path.default.join(PACKAGES_PATH, "core/cli"),
99
100
  CORE_CLIENT,
100
101
  CORE_CLIENT_V2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/build",
3
- "version": "2.1.0-alpha.15",
3
+ "version": "2.1.0-alpha.17",
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": "7c86e75b0af4b9f532c8ebf5ef96a7423b0ab60e"
56
+ "gitHead": "586cb00f56557e66168b9720d0e0193a1b752067"
57
57
  }