@jpapini/tsup-config
v1.2.0
Published
Custom tsup configuration for TypeScript libraries.
Downloads
288
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.js
file 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.json
file to add the following scripts:
{
"scripts": {
"build": "tsup"
}
}
Author
- Julien Papini [email protected]