Get codebase building pre bundling

This isn't totally complete, but enough to get everything building and
tests running manually. The next commit will make the build work fully.
This commit is contained in:
Jake Bailey committed 2022-11-07 13:34:44 -08:00
1 parent 6dfa4299d7
commit 36e29448e9
71 files changed
+615 -1204

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
import * as ts from "./_namespaces/ts";
import { Debug, LogLevel } from "./_namespaces/ts";
// TODO(jakebailey): replace const enum with enum in d.ts
// enable deprecation logging
declare const console: any;
if (typeof console !== "undefined") {
Debug.loggingHost = {
log(level, s) {
switch (level) {
case LogLevel.Error: return console.error(s);
case LogLevel.Warning: return console.warn(s);
case LogLevel.Info: return console.log(s);
case LogLevel.Verbose: return console.log(s);
}
}
};
}
export = ts;