mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-17 21:09:09 -05:00
Add dts bundling
This adds a "small" d.ts bundler script. This script is very basic, using Node printing to produce its output. Generally speaking, this is inadvisable as it completely disregards name shadowing, globals, etc. However, in our case, we don't care about the globals, and we can opt to restructure our codebase in order to avoid conflict, which we largely had to do anyway when we were namespaces and everything was in scope.
This commit is contained in:
@@ -128,7 +128,7 @@ function createResolvedModuleWithFailedLookupLocations(
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
interface ModuleResolutionState {
|
||||
export interface ModuleResolutionState {
|
||||
host: ModuleResolutionHost;
|
||||
compilerOptions: CompilerOptions;
|
||||
traceEnabled: boolean;
|
||||
@@ -146,7 +146,7 @@ interface ModuleResolutionState {
|
||||
*
|
||||
* @internal
|
||||
*/
|
||||
interface PackageJsonPathFields {
|
||||
export interface PackageJsonPathFields {
|
||||
typings?: string;
|
||||
types?: string;
|
||||
typesVersions?: MapLike<MapLike<string[]>>;
|
||||
@@ -226,7 +226,7 @@ function readPackageJsonTypesVersionsField(jsonContent: PackageJson, state: Modu
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
interface VersionPaths {
|
||||
export interface VersionPaths {
|
||||
version: string;
|
||||
paths: MapLike<string[]>;
|
||||
}
|
||||
@@ -1290,7 +1290,7 @@ export function resolveJSModule(moduleName: string, initialDir: string, host: Mo
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
enum NodeResolutionFeatures {
|
||||
export enum NodeResolutionFeatures {
|
||||
None = 0,
|
||||
// resolving `#local` names in your own package.json
|
||||
Imports = 1 << 1,
|
||||
|
||||
Reference in New Issue
Block a user