@tmsfe/tmskit 0.0.38 → 0.0.41

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
@@ -1400,7 +1400,10 @@ function updateMainPackages(appJson, mainPackages = []) {
1400
1400
  process.exit(-1);
1401
1401
  }
1402
1402
  subpackage.pages.forEach(page => {
1403
- appJson.pages.push(`${subpackage.root}/${page}`);
1403
+ const pagePath = `${subpackage.root}/${page}`;
1404
+ if (!appJson.pages.includes(pagePath)) {
1405
+ appJson.pages.push(pagePath);
1406
+ }
1404
1407
  });
1405
1408
  if (subpackage.plugins) {
1406
1409
  Object.assign(appJson.plugins, subpackage.plugins);
@@ -4040,7 +4043,7 @@ var entry = [{
4040
4043
 
4041
4044
  var require$$12 = {
4042
4045
  name: "@tmsfe/tmskit",
4043
- version: "0.0.38",
4046
+ version: "0.0.41",
4044
4047
  description: "tmskit",
4045
4048
  main: "dist/index.cjs",
4046
4049
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tmskit",
3
- "version": "0.0.38",
3
+ "version": "0.0.41",
4
4
  "description": "tmskit",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {
@@ -31,7 +31,10 @@ function updateMainPackages(appJson, mainPackages = []) {
31
31
  process.exit(-1);
32
32
  }
33
33
  subpackage.pages.forEach((page) => {
34
- appJson.pages.push(`${subpackage.root}/${page}`);
34
+ const pagePath = `${subpackage.root}/${page}`;
35
+ if (!appJson.pages.includes(pagePath)) {
36
+ appJson.pages.push(pagePath);
37
+ }
35
38
  });
36
39
  if (subpackage.plugins) {
37
40
  Object.assign(appJson.plugins, subpackage.plugins);