@nocobase/build 1.2.34-alpha → 1.2.35-alpha

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.
@@ -189,8 +189,7 @@ async function buildServerDeps(cwd, serverFiles, log) {
189
189
  }
190
190
  tips.push(`For more information, please refer to: ${import_chalk.default.blue("https://docs.nocobase.com/development/deps")}.`);
191
191
  log(tips.join(" "));
192
- if (!includePackages.length)
193
- return;
192
+ if (!includePackages.length) return;
194
193
  const deps = (0, import_getDepsConfig.getDepsConfig)(cwd, outDir, includePackages, external);
195
194
  for (const dep of Object.keys(deps)) {
196
195
  const { outputDir, mainFile, pkg, nccConfig, depDir } = deps[dep];
@@ -58,8 +58,7 @@ const isValidPackageName = (str) => {
58
58
  return pattern.test(str);
59
59
  };
60
60
  function getPackageNameFromString(str) {
61
- if (str.startsWith("."))
62
- return null;
61
+ if (str.startsWith(".")) return null;
63
62
  const arr = str.split("/");
64
63
  let packageName;
65
64
  if (arr[0].startsWith("@")) {
@@ -102,8 +101,7 @@ function checkEntryExists(cwd, entry, log) {
102
101
  }
103
102
  function checkDependencies(packageJson, log) {
104
103
  const packages = Object.keys(packageJson.dependencies || {});
105
- if (!packages.length)
106
- return;
104
+ if (!packages.length) return;
107
105
  log(
108
106
  "The build tool will package all dependencies into the dist directory, so you don't need to put them in %s. Instead, they should be placed in %s. For more information, please refer to: %s.",
109
107
  import_chalk.default.yellow(packages.join(", ")),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/build",
3
- "version": "1.2.34-alpha",
3
+ "version": "1.2.35-alpha",
4
4
  "description": "Library build tool based on rollup.",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -9,9 +9,9 @@
9
9
  },
10
10
  "typings": "./index.d.ts",
11
11
  "dependencies": {
12
- "@babel/core": "7.22.10",
13
- "@babel/plugin-transform-modules-amd": "7.22.5",
14
- "@babel/preset-env": "7.22.10",
12
+ "@babel/core": "7.25.2",
13
+ "@babel/plugin-transform-modules-amd": "7.24.7",
14
+ "@babel/preset-env": "7.25.3",
15
15
  "@hapi/topo": "^6.0.0",
16
16
  "@lerna/project": "4.0.0",
17
17
  "@types/gulp": "^4.0.13",
@@ -25,7 +25,7 @@
25
25
  "gulp": "4.0.2",
26
26
  "gulp-typescript": "6.0.0-alpha.1",
27
27
  "tar": "^6.2.0",
28
- "tsup": "7.2.0",
28
+ "tsup": "8.2.4",
29
29
  "typescript": "5.1.3",
30
30
  "update-notifier": "3.0.0",
31
31
  "vite-plugin-css-injected-by-js": "^3.2.1",
@@ -36,5 +36,5 @@
36
36
  "scripts": {
37
37
  "build": "tsup"
38
38
  },
39
- "gitHead": "c62835e64106fcfb0b6554e75dac6c368276bcc2"
39
+ "gitHead": "37a4edc27153f9346b3b08c25a407fb57c78b68e"
40
40
  }