Skip to content

Commit aa2d709

Browse files
authored
Merge pull request #58 from firstlookmedia/fix-pq-flags
fix pq flags
2 parents e19abb4 + 9b01b9d commit aa2d709

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ template/schema.graphql
66
yarn-error.log
77
.watchmanconfig
88
.tern-port
9+
complete.queryMap.json

scripts/utils/relayCompilerArguments.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,10 @@ module.exports = [
3333
'--artifactDirectory',
3434
'src/__generated__',
3535

36-
process.env.PERSIST_QUERIES ? '--persist --persist-output' : '',
36+
// FIXME: relay fork persist queries flag, remove when no projects use the fork
37+
process.env.PERSIST_QUERIES ? '--persist' : '',
38+
39+
// relay v2+ persist queries flag
40+
process.env.PERSIST_QUERIES ? '--persist-output' : '',
41+
process.env.PERSIST_QUERIES ? './complete.queryMap.json' : '',
3742
].reduce((acc, item) => acc.concat(item), []);

0 commit comments

Comments
 (0)