Skip to content

Commit

Permalink
add serde(alias = "exclude") to SingleProjectConfigFile
Browse files Browse the repository at this point in the history
Summary:
In v12 the `relay-config` we were using `exclude` for this name.

Let's add an alias, so the migration from v12 to v13 is easier for configs that have `exclude` in them.

Reviewed By: voideanvalue

Differential Revision: D33378911

fbshipit-source-id: 106e071c414a25021953d00b96b92ae49e760cef
  • Loading branch information
alunyov authored and facebook-github-bot committed Jan 4, 2022
1 parent f0d7395 commit 504b5a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/crates/relay-compiler/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ pub struct SingleProjectConfigFile {

/// Directories to ignore under src
/// default: ['**/node_modules/**', '**/__mocks__/**', '**/__generated__/**'],
#[serde(alias = "exclude")]
pub excludes: Vec<String>,

/// List of directories with schema extensions.
Expand Down

0 comments on commit 504b5a8

Please sign in to comment.