message: Assume the output is a directory when it has no extension
diff: @@ -47,6 +47,10 @@ export default function generate(
  validateQueryDocument(schema, document);
  + if (outputPath.split('.').length <= 1 && !fs.existsSync(outputPath)) {
  + fs.mkdirSync(outputPath);
  + }
  +
  if (target === "swift") {
  options.addTypename = true;
  const context = compileToIR(schema, document, options);
  