cmyr-template-cli 1.41.1 → 1.41.2

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/dist/plopfile.js +8 -4
  2. package/package.json +1 -1
package/dist/plopfile.js CHANGED
@@ -1045,10 +1045,14 @@ async function initDependabot(projectPath, answers) {
1045
1045
  versions: [">= 4.13.3"]
1046
1046
  });
1047
1047
  }
1048
- dependabot.updates[0].ignore = (0, import_lodash.uniqBy)([
1049
- ...dependabot?.updates?.[0].ignore || [],
1050
- ...dependencies
1051
- ], (e) => e["dependency-name"]);
1048
+ if (dependencies.length) {
1049
+ dependabot.updates[0].ignore = (0, import_lodash.uniqBy)([
1050
+ ...dependabot?.updates?.[0].ignore || [],
1051
+ ...dependencies
1052
+ ], (e) => e["dependency-name"]);
1053
+ } else {
1054
+ dependabot.updates[0].ignore = void 0;
1055
+ }
1052
1056
  }
1053
1057
  if (dependabot?.updates?.every((e) => e["package-ecosystem"] !== "github-actions")) {
1054
1058
  dependabot.updates.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cmyr-template-cli",
3
- "version": "1.41.1",
3
+ "version": "1.41.2",
4
4
  "description": "草梅友仁自制的项目模板创建器",
5
5
  "author": "CaoMeiYouRen",
6
6
  "license": "MIT",