apollo-codegen
Advanced tools
Comparing version 0.10.6 to 0.10.7
@@ -12,2 +12,6 @@ #!/usr/bin/env node | ||
var _glob = require('glob'); | ||
var _glob2 = _interopRequireDefault(_glob); | ||
var _process = require('process'); | ||
@@ -114,3 +118,11 @@ | ||
}, argv => { | ||
const inputPaths = argv.input.map(input => _path2.default.resolve(input)); | ||
let input = argv.input; | ||
// Use glob if the user's shell was unable to expand the pattern | ||
if (input.length === 1 && _glob2.default.hasMagic(input[0])) { | ||
input = _glob2.default.sync(input[0]); | ||
} | ||
const inputPaths = input.map(input => _path2.default.resolve(input)); | ||
const options = { passthroughCustomScalars: argv["passthrough-custom-scalars"] }; | ||
@@ -117,0 +129,0 @@ (0, _.generate)(inputPaths, argv.schema, argv.output, argv.target, options); |
{ | ||
"name": "apollo-codegen", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"description": "Generate API code or type annotations based on a GraphQL schema and query documents", | ||
@@ -30,3 +30,2 @@ "main": "./lib/index.js", | ||
"common-tags": "^1.3.0", | ||
"glob": "^7.0.5", | ||
"mocha": "^3.1.2" | ||
@@ -36,2 +35,3 @@ }, | ||
"babel-runtime": "^6.20.0", | ||
"glob": "^7.0.5", | ||
"source-map-support": "^0.4.2", | ||
@@ -38,0 +38,0 @@ "change-case": "^3.0.0", |
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
427710
8
7814
9
+ Addedglob@^7.0.5
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedwrappy@1.0.2(transitive)