gramps-graphql / gramps-cli

CLI for creating and developing with GrAMPS data sources.
https://gramps.js.org/
MIT License
10 stars 7 forks source link

Unable to load data-sources. #65

Open JonathanAaron opened 5 years ago

JonathanAaron commented 5 years ago

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) {