@nocobase/build 0.21.0-alpha.1 → 0.21.0-alpha.3

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/constant.js CHANGED
@@ -86,7 +86,7 @@ const CJS_EXCLUDE_PACKAGES = [
86
86
  CORE_CLIENT
87
87
  ];
88
88
  const getCjsPackages = (packages) => packages.filter((item) => !PLUGINS_DIR.some((dir) => item.location.startsWith(dir))).filter((item) => !item.location.startsWith(PRESETS_DIR)).filter((item) => !CJS_EXCLUDE_PACKAGES.includes(item.location));
89
- const tarIncludesFiles = ["package.json", "README.md", "LICENSE", "dist", "!node_modules", "!src"];
89
+ const tarIncludesFiles = ["package.json", "README.md", "LICENSE", "dist", "!node_modules"];
90
90
  const TAR_OUTPUT_DIR = process.env.TAR_PATH ? process.env.TAR_PATH : import_path.default.join(ROOT_PATH, "storage", "tar");
91
91
  // Annotate the CommonJS export names for ESM import in node:
92
92
  0 && (module.exports = {
package/lib/tarPlugin.js CHANGED
@@ -41,7 +41,7 @@ function tarPlugin(cwd, log) {
41
41
  const npmIgnore = import_path.default.join(cwd, ".npmignore");
42
42
  let files = pkg.files || [];
43
43
  if (import_fs_extra.default.existsSync(npmIgnore)) {
44
- files = import_fs_extra.default.readFileSync(npmIgnore, "utf-8").split("\n").filter((item) => item.trim()).map((item) => `!${item}`);
44
+ files = import_fs_extra.default.readFileSync(npmIgnore, "utf-8").split("\n").filter((item) => item.trim()).map((item) => item.startsWith("/") ? `.${item}` : item).map((item) => `!${item}`);
45
45
  files.push("**/*");
46
46
  }
47
47
  files.push(...import_constant.tarIncludesFiles);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/build",
3
- "version": "0.21.0-alpha.1",
3
+ "version": "0.21.0-alpha.3",
4
4
  "description": "Library build tool based on rollup.",
5
5
  "main": "lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -36,5 +36,5 @@
36
36
  "scripts": {
37
37
  "build": "tsup"
38
38
  },
39
- "gitHead": "afd2f3d1341b85ea9daa7b2667dd4ace1fafb7ff"
39
+ "gitHead": "f7276aff14063a2cf825191a0c83aeacde05a912"
40
40
  }