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

feat(fluid-build): Support external config #14215

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

tylerbutler
Copy link
Member

The config used by fluid-build is stored in the fluidBuild node in package.json. The config is loaded using custom code, which makes it more difficult to move the config to an external config file, which we would like to do to minimize churn in package.json.

This change uses cosmiconfig to load the config, replacing the custom code. This means the config can now be in an external fluidBuild.config.cjs or fluidBuild.config.js file, in addition to the package.json node. The files are checked first; package.json is the fallback.

This PR does not change where the config is stored. That can be done in a future change.

@tylerbutler tylerbutler requested review from msfluid-bot and a team as code owners February 16, 2023 19:02
@github-actions github-actions bot added area: contributor experience base: main PRs targeted against main branch labels Feb 16, 2023
@tylerbutler tylerbutler changed the title improvement(fluid-build): Support external config feat(fluid-build): Support external config Feb 16, 2023
@tylerbutler tylerbutler merged commit 1fc3cbc into microsoft:main Feb 16, 2023
@tylerbutler tylerbutler deleted the cosmiconfig branch February 16, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: contributor experience base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants