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

Backwards compatible .toolkitrc options field #617

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

apaleslimghost
Copy link
Member

@apaleslimghost apaleslimghost commented Apr 10, 2024

old .toolkitrcs contain options with just plugin options. these are now nested under options.plugins. if an options is non-empty, but doesn't contain any of the new top-level fields, assume it's old-style, and nest it.

nb this probably won't actually work in most cases, as the options are all moving around in #570. but we'll at least get semi-useful schema errors. maybe?

@apaleslimghost apaleslimghost requested a review from a team as a code owner April 10, 2024 09:59
@apaleslimghost apaleslimghost force-pushed the backwards-compatible-options branch from 4bc3228 to e92f934 Compare April 10, 2024 10:03
core/cli/src/rc-file.ts Show resolved Hide resolved
core/cli/src/rc-file.ts Show resolved Hide resolved
Base automatically changed from slightly-more-backwards-compatible to CPP-1852-task-vs-plugin-options April 10, 2024 10:51
Base automatically changed from CPP-1852-task-vs-plugin-options to next April 10, 2024 13:09
@apaleslimghost apaleslimghost force-pushed the backwards-compatible-options branch from b2f4c27 to 6015856 Compare April 10, 2024 13:10
@apaleslimghost apaleslimghost merged commit adb5b66 into next Apr 10, 2024
15 checks passed
@apaleslimghost apaleslimghost deleted the backwards-compatible-options branch April 10, 2024 13:14
ivomurrell pushed a commit that referenced this pull request Sep 5, 2024
…ions

Backwards compatible .toolkitrc options field
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.

2 participants