apollo-codegen
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -56,2 +56,3 @@ #!/usr/bin/env node | ||
describe: 'Output path for GraphQL schema file', | ||
default: 'schema.json', | ||
normalize: true | ||
@@ -126,6 +127,7 @@ }, | ||
}; | ||
}()).command('generate <input...>', 'Generate code from a GraphQL schema and query documents', { | ||
}()).command('generate [input...]', 'Generate code from a GraphQL schema and query documents', { | ||
schema: { | ||
demand: true, | ||
describe: 'Path to GraphQL schema file', | ||
default: 'schema.json', | ||
normalize: true | ||
@@ -132,0 +134,0 @@ }, |
@@ -43,3 +43,8 @@ 'use strict'; | ||
var body = _fs2.default.readFileSync(inputPath, 'utf8'); | ||
if (!body) { | ||
return null; | ||
} | ||
return new _graphql.Source(body, inputPath); | ||
}).filter(function (source) { | ||
return source; | ||
}); | ||
@@ -46,0 +51,0 @@ |
{ | ||
"name": "apollo-codegen", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "Generate client code based on a GraphQL schema and query documents", | ||
@@ -38,4 +38,4 @@ "main": "./lib/index.js", | ||
"node-fetch": "^1.5.3", | ||
"yargs": "^5.0.0" | ||
"yargs": "^6.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
252329
4904
+ Addedyargs@6.6.0(transitive)
+ Addedyargs-parser@4.2.1(transitive)
- Removedlodash.assign@4.2.0(transitive)
- Removedwindow-size@0.2.0(transitive)
- Removedyargs@5.0.0(transitive)
- Removedyargs-parser@3.2.0(transitive)
Updatedyargs@^6.0.0