gramps-graphql / gramps-cli

CLI for creating and developing with GrAMPS data sources.

Home Page:https://gramps.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to load data-sources.

JonathanAaron opened this issue · comments

I'm unable to load data-sources using cli.

dataSources = [], ^^^^^^^^^^^^^^^^ SyntaxError: Invalid shorthand property initializer at Object.exports.runInThisContext (vm.js:76:16)

Also won't this always equal false?

const handler = exports.handler = async ({
  dataSources = [],
  mock = false,
  gateway,
  transpile
}) => {
  (0, _logger.warn)('The GrAMPS CLI is intended for local development only.');

  let dataSourcePaths = [];
  let loadedDataSources = [];
  if (dataSources.length) {