diff --git a/deno.ts b/deno.ts new file mode 100644 index 0000000000000..595d87709a374 --- /dev/null +++ b/deno.ts @@ -0,0 +1,6 @@ +// Copyright 2018 Ryan Dahl +// All rights reserved. MIT License. +// Public deno module. +// TODO get rid of deno.d.ts +export { pub, sub } from "./dispatch"; +export { readFileSync, writeFileSync } from "./os"; diff --git a/runtime.ts b/runtime.ts index 1b6e7cfcd8846..fb64cd2b6d2dc 100644 --- a/runtime.ts +++ b/runtime.ts @@ -12,20 +12,12 @@ import * as ts from "typescript"; import * as util from "./util"; import { log } from "./util"; import * as os from "./os"; -import { pub, sub } from "./dispatch"; import * as sourceMaps from "./v8_source_maps"; import { _global, globalEval } from "./globals"; +import * as deno from "./deno"; const EOL = "\n"; -// Public deno module. -const deno = { - pub, - sub, - readFileSync: os.readFileSync, - writeFileSync: os.writeFileSync -}; - // tslint:disable-next-line:no-any type AmdFactory = (...args: any[]) => undefined | object; type AmdDefine = (deps: string[], factory: AmdFactory) => void;