mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
16 lines
355 B
TypeScript
16 lines
355 B
TypeScript
const { diagnostics, files } = await Deno.emit(
|
|
"/main.ts",
|
|
{
|
|
sources: {
|
|
"/main.ts":
|
|
`/// <reference lib="dom" />\n\ndocument.getElementById("foo");\nDeno.args;`,
|
|
},
|
|
compilerOptions: {
|
|
target: "es2018",
|
|
lib: ["es2018", "deno.ns"],
|
|
},
|
|
},
|
|
);
|
|
|
|
console.log(diagnostics);
|
|
console.log(Object.keys(files).sort());
|