@jpapini/tsup-config
v1.5.4
Published
Custom tsup configuration for TypeScript libraries.
Downloads
8
Maintainers
Readme
tsup configuration
Custom tsup configuration for TypeScript libraries.
How to use
- Install the package and its required peer dependencies:
pnpm add -D @jpapini/tsup-config tsup- Create a
tsup.config.jsfile with the following content:
import { fileURLToPath } from 'node:url';
import { createLibraryConfiguration } from '@jpapini/tsup-config';
export default createLibraryConfiguration(fileURLToPath(new URL('.', import.meta.url)));- Edit the
package.jsonfile to add the following scripts:
{
"scripts": {
"build": "tsup"
}
}Author
- Julien Papini [email protected]
