Comparing version 1.2.0 to 1.3.0
@@ -55,3 +55,9 @@ #!/usr/bin/env node | ||
exports.generate = generate; | ||
var updatePath = function (path, outPath) { | ||
var typescriptDeclaration = [ | ||
"import { DocumentNode } from 'graphql';", | ||
"declare const doc: DocumentNode;", | ||
"export default doc;", | ||
"", | ||
].join("\n"); | ||
var updatePath = function (path, outPath, emitDeclarations) { | ||
if (!fs.existsSync(path)) { | ||
@@ -76,3 +82,5 @@ if (fs.existsSync(outPath)) { | ||
var newContent = (0, exports.generate)(source); | ||
return writeIfChanged(outPath, newContent); | ||
var jsChanged = writeIfChanged(outPath, newContent); | ||
var tsChanged = emitDeclarations && writeIfChanged(outPath + '.d.ts', typescriptDeclaration); | ||
return jsChanged || tsChanged; | ||
} | ||
@@ -86,6 +94,7 @@ }; | ||
commander_1.default.option("-d, --root <rootPath>", "Dir to consider source files relative to when calculating the output path"); | ||
commander_1.default.option("-t, --emitDeclarations", "Emit .d.ts files along with each .js file"); | ||
commander_1.default.option("-v, --verbose", "More output", false); | ||
commander_1.default.arguments("<patterns...>"); | ||
commander_1.default.parse(process.argv); | ||
var _a = commander_1.default.opts(), verbose = _a.verbose, outPath_1 = _a.output, root = _a.root, watch = _a.watch; | ||
var _a = commander_1.default.opts(), emitDeclarations_1 = _a.emitDeclarations, verbose = _a.verbose, outPath_1 = _a.output, root = _a.root, watch = _a.watch; | ||
if (verbose) { | ||
@@ -104,3 +113,3 @@ printFilenames = true; | ||
var listener = function (path) { | ||
return updatePath(path, (0, path_1.resolve)(outPath_1, (0, path_1.relative)(rootPath_1 || "", path + ".js"))); | ||
return updatePath(path, (0, path_1.resolve)(outPath_1, (0, path_1.relative)(rootPath_1 || "", path + ".js")), emitDeclarations_1); | ||
}; | ||
@@ -149,2 +158,2 @@ if (watch) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcm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UNELElBQUksU0FBUyxFQUFFO1lBQ2IsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFFLFlBQVksY0FBQSxFQUFFLFNBQVMsV0FBQSxFQUFFLEVBQUUsc0JBQXNCLENBQUMsQ0FBQztTQUNsRTtRQUVELElBQUksQ0FBQyxLQUFLLEVBQUU7WUFDVixPQUFPLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDO1NBQ2pCO0tBQ0Y7SUFBQyxPQUFPLENBQUMsRUFBRTtRQUNWLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDakIsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUNqQjtBQUNILENBQUMsQ0FBQztBQUVGLElBQUksT0FBTyxDQUFDLElBQUksS0FBSyxNQUFNLEVBQUU7SUFDM0IsSUFBSSxFQUFFLENBQUM7Q0FDUiJ9 |
{ | ||
"name": "graphql2js", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Generate js files from .graphql files, so you can import them", | ||
@@ -5,0 +5,0 @@ "main": "bin/index.js", |
@@ -46,1 +46,5 @@ # graphql2js | ||
Changed it so that `--watch` still processes all the files | ||
### 1.3.0 | ||
Added option `-t` to emit typescript `.d.ts` files |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
634990
12575
50
0