Skip to content

Commit 85f6c90

Browse files
gatsbybotTylerBarnes
andauthoredFeb 21, 2024
fix(gatsby-source-wordpress): only diff wpgraphql schema if the user opts in (#38856) (#38860)
* only diff wpgraphql schema if the user opts in * Update config.yml --------- Co-authored-by: Michal Piechowiak <misiek.piechowiak@gmail.com> (cherry picked from commit 5bd4c25) Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
1 parent b4ce9e6 commit 85f6c90

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ jobs:
560560
nvm install 18.0.0
561561
nvm alias default 18.0.0
562562
nvm use 18.0.0
563-
choco install yarn
563+
choco install yarn -y
564564
- run:
565565
name: Rebuild packages for windows
566566
command: |

‎packages/gatsby-source-wordpress/src/steps/create-schema-customization/helpers.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,8 @@ function mergeDuplicateTypesAndReturnDedupedList(typeDefs) {
336336
* This is to catch and add helpful error messages for when an inconsistent schema between builds is inadvertently created due to some bug
337337
*/
338338
export async function diffBuiltTypeDefs(typeDefs) {
339-
if (
340-
process.env.NODE_ENV !== `development` &&
341-
process.env.WP_DIFF_SCHEMA_CUSTOMIZATION !== `true`
342-
) {
339+
// only diff the schema if the user has opted in
340+
if (process.env.WP_DIFF_SCHEMA_CUSTOMIZATION !== `true`) {
343341
return
344342
}
345343

0 commit comments

Comments
 (0)