Skip to content

Commit 030290b

Browse files
committed
update dictionary code structure
1 parent 538e368 commit 030290b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dictionary/build.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ export async function buildWithDictionary(
2121
const code = `\
2222
// this code is autogenerated
2323
24-
import { Dictionary } from "./type.ts";
24+
import { Dictionary, Entry } from "./type.ts";
25+
26+
const json: Record<string, Entry> = ${json};
2527
26-
export const dictionary: Dictionary = new Map(Object.entries(${json}));
28+
export const dictionary: Dictionary = new Map(Object.entries(json));
2729
`;
2830
await Deno.writeTextFile(DESTINATION, code);
2931
}

0 commit comments

Comments
 (0)