@tmsfe/tmskit 0.0.54 → 0.0.55

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/dist/index.cjs.js CHANGED
@@ -3196,6 +3196,10 @@ var dev$4 = async (tmsConfig, modules, isDev = true) => {
3196
3196
  }
3197
3197
  return `!${resolve$a(srcModulePath, newPath)}/**/*`;
3198
3198
  });
3199
+
3200
+ // 构建时排除 README 文件,减小包体积(仅本地 dev 保留)
3201
+ excludes.push(`!${srcModulePath}/**/README.md`);
3202
+ excludes.push(`!${srcModulePath}/**/readme.md`);
3199
3203
  const moduleConfigPath = `${srcModulePath}/**/module.config.json`;
3200
3204
  const moduleConfigGlob = tmsConfig.isKeepModuleConfig ? `${moduleConfigPath}` : `!${moduleConfigPath}`;
3201
3205
  mergeMap(compileTasksMap, compile(tmsConfig, {
@@ -4243,7 +4247,7 @@ var entry = [{
4243
4247
 
4244
4248
  var require$$12 = {
4245
4249
  name: "@tmsfe/tmskit",
4246
- version: "0.0.54",
4250
+ version: "0.0.55",
4247
4251
  description: "tmskit",
4248
4252
  main: "dist/index.cjs",
4249
4253
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tmskit",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "tmskit",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {
@@ -72,6 +72,10 @@ module.exports = async (tmsConfig, modules, isDev = true) => {
72
72
  return `!${resolve(srcModulePath, newPath)}/**/*`;
73
73
  });
74
74
 
75
+ // 构建时排除 README 文件,减小包体积(仅本地 dev 保留)
76
+ excludes.push(`!${srcModulePath}/**/README.md`);
77
+ excludes.push(`!${srcModulePath}/**/readme.md`);
78
+
75
79
  const moduleConfigPath = `${srcModulePath}/**/module.config.json`;
76
80
 
77
81
  const moduleConfigGlob = tmsConfig.isKeepModuleConfig ? `${moduleConfigPath}` : `!${moduleConfigPath}`;