Skip to content

Commit

Permalink
feat(fluid-build): Support external config (microsoft#14215)
Browse files Browse the repository at this point in the history
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 does not change where the config is stored. That can be done in
a future change.
  • Loading branch information
tylerbutler committed Feb 16, 2023
1 parent 2da40fc commit 1fc3cbc
Show file tree
Hide file tree
Showing 4 changed files with 400 additions and 437 deletions.
Loading

0 comments on commit 1fc3cbc

Please sign in to comment.