INNER CODE UNIT · TypeScript

generators

sabinadams/aurora · src/aurora.ts:67

  const generators = Array.from(new Set(allGenerators.map((gen) => JSON.stringify(gen)))).map(
    (gen) => JSON.parse(gen)
  );

  const generator = renderGenerators(generators);

  let output = ['// ◮◮◮ GENERATED BY AURORA ◮◮◮', datasource, generator, models, enums].join('\n');

  await writeSchema(config.output, await formatSchema({ schema: output }));

  console.log(`◮◮◮ Succesfully built into ${config.output} ◮◮◮`);
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…