Skip to content

Commit

Permalink
fix: fix build entrypoint in tsup.config
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Oct 30, 2023
1 parent 18ae508 commit 9a6c61f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from 'tsup';
export default defineConfig({
minify: true,
// The file we created above that will be the entrypoint to the library.
entry: ['src/index.tsx'],
entry: ['src/index.ts'],
// Enable TypeScript type definitions to be generated in the output.
// This provides type-definitions to consumers.
dts: true,
Expand All @@ -13,6 +13,7 @@ export default defineConfig({
// Sourcemaps for easier debugging.
sourcemap: true,
esbuildOptions(options) {
// eslint-disable-next-line no-param-reassign
options.banner = {
js: '"use client"',
};
Expand Down

0 comments on commit 9a6c61f

Please sign in to comment.