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
2022-11-07 13:34:44 -08:00
parent 6dfa4299d7
commit 36e29448e9
71 changed files with 615 additions and 1204 deletions
+6
View File
@@ -0,0 +1,6 @@
/* Generated file to emulate the ts namespace. */
export * from "../../compiler/_namespaces/ts";
export * from "../../jsTyping/_namespaces/ts";
export * from "../../services/_namespaces/ts";
export * from "../../deprecatedCompat/_namespaces/ts";
+13
View File
@@ -0,0 +1,13 @@
{
"extends": "../tsconfig-base",
"compilerOptions": {
"outDir": "../../built/local/typescript"
},
"references": [
{ "path": "../compiler" },
{ "path": "../jsTyping" },
{ "path": "../services" },
{ "path": "../deprecatedCompat" }
],
"include": ["**/*"]
}
+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;