Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ertrzyiks/tsup-bundle-playground
https://github.com/ertrzyiks/tsup-bundle-playground
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ertrzyiks/tsup-bundle-playground
- Owner: ertrzyiks
- Created: 2022-10-01T14:09:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-01T14:09:36.000Z (over 2 years ago)
- Last Synced: 2024-12-07T19:36:06.405Z (about 1 month ago)
- Language: TypeScript
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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';
```