Skip to content

TSPackageScope

Extends OutputScope

constructor(name: string, version: string, path: string, options: TSPackageScopeOptions)Constructs a new instance of the TSPackageScope class
addDependency(pkg: TSPackageScope) => void
addExport(publicPath: string, module: TSModuleScope) => void
addModule(module: TSModuleScope) => void
builtinbooleanWhether this is a built-in package provided by the platform.
copyTo() => TSPackageScope
debugInfoRecord<string, unknown>
dependenciesSet<TSPackageScope>The scopes for the packages this package depends on.
exportedSymbolsMap<string, TSModuleScope>The symbols exported by this package. They are broken down by which paths they are exported from. It is possible a symbol may be present at multiple paths, in which case emitters can decide which symbol to use based on their own heuristics.
findExportedSymbol(refkey: Refkey) => [string, TSModuleScope] | null
modulesSet<TSModuleScope>All of the modules contained within the package. These modules may or may not be exported.
pathstringThe path of the root directory of the package.
versionstringThe version of the this package.