Skip to content

Commit

Permalink
chore: produce a single bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jun 25, 2024
1 parent 2fe63c6 commit 8af8424
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"devDependencies": {
"@commitlint/config-conventional": "^19.2.2",
"@vitest/coverage-v8": "^1.6.0",
"fast-glob": "^3.3.2",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.0.3",
"tsup": "^8.1.0",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { defineConfig } from 'tsup'
import glob from 'fast-glob'

export default defineConfig({
entry: glob.sync(['src/**/*.ts', '!**/*.test.ts']),
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
target: 'node16',
esbuildOptions(options) {
options.chunkNames = 'chunks/[name]-[hash]'
}
target: 'node16'
})

0 comments on commit 8af8424

Please sign in to comment.