Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: default skipRestore to true when mode is create #1793

Merged
merged 1 commit into from
Dec 21, 2024

Conversation

JoshuaKGoldberg
Copy link
Owner

@JoshuaKGoldberg JoshuaKGoldberg commented Dec 21, 2024

PR Checklist

Overview

When mode is "create", options.skipRestore now has an additional ?? to set it to true.

Most of the time spent here is adjusting mocks, since readOptions previously always ran in that mode. Looking forward to the new create engine to make this much more automatic and inferred. 😎

💖

(JSON.parse(await readFileSafe("./package.json", "{}")) as
| PartialPackageData
| undefined) ?? {}
);
Copy link
Owner Author

Choose a reason for hiding this comment

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

Supports migration mode when package.json doesn't exist. An accidental bugfix from failing tests.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 33e235b into main Dec 21, 2024
17 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the mode-create-no-restore branch December 21, 2024 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Bug: Don't offer to restore repository with --mode create
1 participant