Skip to content

Comments

Preserves extra fields on re-init#28

Merged
nickesc merged 4 commits intomainfrom
dev
Feb 14, 2026
Merged

Preserves extra fields on re-init#28
nickesc merged 4 commits intomainfrom
dev

Conversation

@nickesc
Copy link
Owner

@nickesc nickesc commented Feb 14, 2026

Fixes a bug that could cause fields to be lost when running init in a directory that already has a modpack.json file. If there are fields that aren't set during the init flow, it will discard them, including the scripts field.

With this hotfix:

  • Merges existing modpack info with prompted answers so any extra keys present in the original file are preserved instead of being dropped
  • Prevents accidental destruction of scripts, other custom fields

@nickesc nickesc self-assigned this Feb 14, 2026
@nickesc nickesc added the bug Something isn't working label Feb 14, 2026
Copy link
Owner Author

@nickesc nickesc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good. bump version, generate docs and publish

@nickesc nickesc merged commit 9a44814 into main Feb 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant