Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ertrzyiks/tsup-bundle-playground


https://github.com/ertrzyiks/tsup-bundle-playground

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# tsup-bundle-playground

The repo has 2 packages: "a" and "b". Package "a" depends on "b". We want to bundle package "b" inside of the package "a".

In order to do so we run:

```
yarn workspace a tsup ./src/index.ts --dts
```

or even

```
yarn workspace a tsup ./src/index.ts --dts --dts-resolve
```

but the dist/index.d.ts still refers to the package "b" which doesn't exist.

```ts
export { getMessage } from 'b';
```