Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
jkettmann committed Aug 28, 2017
1 parent 0f1b97e commit 9651329
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/getSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function getSchema(schemaPath) {
source = `
directive @include(if: Boolean) on FRAGMENT | FIELD
directive @skip(if: Boolean) on FRAGMENT | FIELD
${source}
`;

Expand All @@ -34,6 +35,7 @@ function getSchema(schemaPath) {
throw new Error(`
Error loading schema. Expected the schema to be a .graphql or a .json
file, describing your GraphQL server's API. Error detail:
${error.stack}
`.trim());
}
Expand Down
1 change: 0 additions & 1 deletion dist/getWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function getWriter(baseDir) {
return (onlyValidate, schema, documents, baseDocuments) => {
return new _relayCompiler.FileWriter({
config: {
buildCommand: 'relay-compiler-webpack-plugin',
formatModule: _formatGeneratedModule2.default,
compilerTransforms: {
codegenTransforms,
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class RelayCompilerWebpackPlugin {
this.writerConfigs = {
default: {
getWriter: (...any) => {},
isGeneratedFile: filePath => filePath.endsWith('.js') && filePath.includes('__generated__'),
parser: 'default'
}
};
Expand Down

0 comments on commit 9651329

Please sign in to comment.