Skip to content

Commit

Permalink
Slightly better organization for deno module.
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 30, 2018
1 parent 0162eca commit c0cc240
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 6 additions & 0 deletions deno.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright 2018 Ryan Dahl <[email protected]>
// 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";
10 changes: 1 addition & 9 deletions runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c0cc240

Please sign in to comment.