@kengic/uni 0.7.3 → 0.7.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/uni",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "scripts": {
5
5
  "postinstall": "node ./script/postinstall.mjs"
6
6
  },
@@ -24,6 +24,11 @@ log(`当前目录 | ${process.cwd()}`);
24
24
 
25
25
  //region 同步依赖
26
26
  //----------------------------------------------------------------------------------------------------
27
+ /**
28
+ * 要排除的包名列表.
29
+ */
30
+ const EXCLUDE_PACKAGE_LIST = ['commander'];
31
+
27
32
  let json01 = null;
28
33
 
29
34
  try {
@@ -48,7 +53,9 @@ try {
48
53
 
49
54
  if (json01 && json02) {
50
55
  for (let key of Object.keys(json01.dependencies)) {
51
- json02.dependencies[key] = json01.dependencies[key];
56
+ if (!EXCLUDE_PACKAGE_LIST.includes(key)) {
57
+ json02.dependencies[key] = json01.dependencies[key];
58
+ }
52
59
  }
53
60
 
54
61
  // 排序,