blob: a0bda6a429a60eb40caac7b957083b4976e1d0fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env -S deno run --unstable --allow-read --allow-write
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
import exports from "./symbol_exports.json" assert { type: "json" };
let def = "LIBRARY\nEXPORTS\n";
for (const symbol of exports.symbols) {
def += ` ${symbol}\n`;
}
const defUrl = new URL("../../cli/exports.def", import.meta.url);
await Deno.writeTextFile(defUrl.pathname, def, { create: true });
|