Files
o11y-components/packages/button/tsup.config.ts
Shaheer KochaiandGitHub 32e697d0e5 refactor: fix the components consumption issue by updating the button and input packages to use tsup for builds (#37)
* refactor: update button and input packages to use tsup for builds to fix the consumption issue

- Changed build scripts in button and input packages from vite to tsup.
- Removed vite.config.ts files as they are no longer needed.
- Updated package.json files to reflect the new build process and dependencies.
- Ensured consistency in the structure and formatting of the package files.

* chore: disable source map and enable splitting

* chore: remove the unnecessary esbuildOptions

* fix: make the changes to generate tsup.config.ts while building a new component
2025-04-14 16:28:52 +04:30

14 lines
241 B
TypeScript

import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/button.tsx'],
format: ['esm'],
dts: true,
splitting: true,
sourcemap: false,
clean: true,
treeshake: true,
external: ['react'],
injectStyle: true,
});