Skip to content

moltar/tsup-dts-resolve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tsup dts resolve repro

A repro example of tsup option for resolving type defs not working.

See src/index.ts file, which is simply exporting the types from an external package.

Build:

$> npm run build

> [email protected] build
> tsup

CLI Building entry: src/index.ts
CLI Using tsconfig: tsconfig.json
CLI tsup v7.2.0
CLI Using tsup config: /.../tsup-dts-resolve/tsup.config.ts
CLI Target: es2020
CLI Cleaning output folder
CJS Build start
CJS lib/index.js 1.03 KB
CJS ⚡️ Build success in 5ms
DTS Build start
DTS ⚡️ Build success in 369ms
DTS lib/index.d.ts 126.00 B

> [email protected] postbuild
> cat lib/index.d.ts
// test
import { DependencyType } from '@changesets/types';

type MyDependencyType = DependencyType;
declare const config: MyDependencyType;

export { MyDependencyType, config };

About

tsup ts def bundling repro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published