* Adds support for declaring the bundled name of a dts module export Co-authored-by: Wesley Wigham <wwigham@gmail.com> * Adds baselines * Update the tests * Try to reduce the scope of the bundledPackageName error * Use the flag in more baselines * Get it green * More tests * Handle more feedback * More test cleanup * Set the moduleResolution for the tsconfigs Co-authored-by: Wesley Wigham <wwigham@gmail.com>
31 lines
578 B
TypeScript
31 lines
578 B
TypeScript
// @module: commonjs
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @outFile: ./dist/out.d.ts
|
|
// @bundledPackageName: my-pkg
|
|
|
|
// @Filename: index.ts
|
|
export * from "./nested";
|
|
|
|
// @Filename: nested/base.ts
|
|
import { B } from "./shared";
|
|
|
|
export function f() {
|
|
return new B();
|
|
}
|
|
|
|
// @Filename: nested/derived.ts
|
|
import { f } from "./base";
|
|
|
|
export function g() {
|
|
return f();
|
|
}
|
|
|
|
// @Filename: nested/index.ts
|
|
export * from "./base";
|
|
export * from "./derived";
|
|
export * from "./shared";
|
|
|
|
// @Filename: nested/shared.ts
|
|
export class B {}
|