Ensure ts object passed to plugins contains deprecatedCompat declarations

We pass the entire "ts" object into plugins. However, we need to make
sure that that object contains the debug compat helpers.

In the old codebase, the deprecated compat code would tack things onto
the actual ts object, after the server code was executed, and later that
same object would be given to plugins.

But in modules, each TS project only sees the view of the "ts" namespace
that their references implied, not the ts object as some sort of
singleton. To ensure that plugins get the debug compat code, we have to
bring that into each project's view of the ts namespace, and not add it
on later in the executable projects.
This commit is contained in:
Jake Bailey
2022-10-18 09:39:24 -07:00
parent db440d8468
commit c5a9573787
6 changed files with 6 additions and 7 deletions

View File

@@ -5,6 +5,5 @@ export * from "../../services/_namespaces/ts";
export * from "../../jsTyping/_namespaces/ts";
export * from "../../server/_namespaces/ts";
export * from "../../webServer/_namespaces/ts";
export * from "../../deprecatedCompat/_namespaces/ts";
import * as server from "./ts.server";
export { server };

View File

@@ -11,8 +11,7 @@
{ "path": "../services" },
{ "path": "../jsTyping" },
{ "path": "../server" },
{ "path": "../webServer" },
{ "path": "../deprecatedCompat" }
{ "path": "../webServer" }
],
"include": ["**/*"]
}