source: trip-planner-front/node_modules/@babel/types/scripts/generators/constants.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 468 bytes
Line 
1import definitions from "../../lib/definitions/index.js";
2
3export default function generateConstants() {
4 let output = `/*
5 * This file is auto-generated! Do not modify it directly.
6 * To re-generate run 'make build'
7 */
8import { FLIPPED_ALIAS_KEYS } from "../../definitions";\n\n`;
9
10 Object.keys(definitions.FLIPPED_ALIAS_KEYS).forEach(type => {
11 output += `export const ${type.toUpperCase()}_TYPES = FLIPPED_ALIAS_KEYS["${type}"];\n`;
12 });
13
14 return output;
15}
Note: See TracBrowser for help on using the repository browser.