@opentapd/tplugin-cli 0.52.0 → 0.52.1

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.
Files changed (2) hide show
  1. package/lib/resources.js +11 -2
  2. package/package.json +5 -2
package/lib/resources.js CHANGED
@@ -178,6 +178,12 @@ function filterResourcesConfigs(docObj, entranceTmpl) {
178
178
  let resourcesConfigs = docObj.app.resources || [];
179
179
  const resourcesKey = []; const tagKey = {};
180
180
 
181
+ const notSupportedMultiEntrance = {
182
+ app_for_setting: true,
183
+ app_for_project: true,
184
+ app_for_devops_setting: true,
185
+ };
186
+
181
187
  // 合并添加的配置信息
182
188
  resourcesConfigs = resourcesConfigs.concat(entranceTmpl.resourcesConfigs);
183
189
  resourcesConfigs = resourcesConfigs.filter((resources) => {
@@ -191,8 +197,11 @@ function filterResourcesConfigs(docObj, entranceTmpl) {
191
197
  return true;
192
198
  }
193
199
 
194
- // 存在重复时,直接过滤
195
- return false;
200
+ if (notSupportedMultiEntrance[resources.key]) {
201
+ return false;
202
+ }
203
+
204
+ return true;
196
205
  });
197
206
 
198
207
  return resourcesConfigs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentapd/tplugin-cli",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "description": "tplugin-cli",
5
5
  "bin": {
6
6
  "tplugin-cli": "index.js"
@@ -78,5 +78,8 @@
78
78
  "node": ">=14.13.0"
79
79
  },
80
80
  "main": "index.js",
81
- "gitHead": "8de7ca919cc1df59a7327cafa58f17c1b26429bc"
81
+ "publishConfig": {
82
+ "tag": "latest"
83
+ },
84
+ "gitHead": "1f5669cd72a0b909bc1ba0c0b26f267a33d27b29"
82
85
  }