summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--deno.ts6
-rw-r--r--runtime.ts10
2 files changed, 7 insertions, 9 deletions
diff --git a/deno.ts b/deno.ts
new file mode 100644
index 000000000..595d87709
--- /dev/null
+++ b/deno.ts
@@ -0,0 +1,6 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// 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 1b6e7cfcd..fb64cd2b6 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;