We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 538e368 commit 030290bCopy full SHA for 030290b
dictionary/build.ts
@@ -21,9 +21,11 @@ export async function buildWithDictionary(
21
const code = `\
22
// this code is autogenerated
23
24
-import { Dictionary } from "./type.ts";
+import { Dictionary, Entry } from "./type.ts";
25
+
26
+const json: Record<string, Entry> = ${json};
27
-export const dictionary: Dictionary = new Map(Object.entries(${json}));
28
+export const dictionary: Dictionary = new Map(Object.entries(json));
29
`;
30
await Deno.writeTextFile(DESTINATION, code);
31
}
0 commit comments