-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix config normalization and migration (#166)
* 🐛 Fix config key normalization The previous regex was only matching the first occurrence of a dash or underscore. This new regex will match even mixed sytaxes * 🐛 Register core config migration for the migrate command Since this command doesn't include core directly, core's config schema and migration are never registered. We were already registering the schema, but also need to register the migration * 🚚 Move core config registration to cli-exec Core config registration is needed when running config:migrate, however cli-exec already requires @percy/core but relies on the package to register itself. It makes more sense to require cli-exec do the registration rather than have cli-config require core only for registration.
- Loading branch information
Wil Wilsman
authored
Feb 5, 2021
1 parent
8495d98
commit 37f2b0b
Showing
6 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import PercyConfig from '@percy/config'; | ||
import { schema, migration } from '@percy/core/dist/config'; | ||
|
||
// ensures the core schema and migration is loaded | ||
export default function() { | ||
PercyConfig.addSchema(schema); | ||
PercyConfig.addMigration(migration); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters