@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 +5 -1
- package/package.json +1 -1
- package/src/compile/dev.js +4 -0
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.
|
|
4250
|
+
version: "0.0.55",
|
|
4247
4251
|
description: "tmskit",
|
|
4248
4252
|
main: "dist/index.cjs",
|
|
4249
4253
|
bin: {
|
package/package.json
CHANGED
package/src/compile/dev.js
CHANGED
|
@@ -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}`;
|