Skip to content

Commit

Permalink
chore(@repo/env-config): add tsup to build the project
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocroh committed Jun 7, 2024
1 parent cfa2db1 commit 4efef55
Show file tree
Hide file tree
Showing 3 changed files with 527 additions and 19 deletions.
3 changes: 2 additions & 1 deletion packages/env-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"main": "index.ts",
"type": "module",
"scripts": {
"build": "tsc"
"build": "tsup index.ts"
},
"dependencies": {
"@t3-oss/env-nextjs": "^0.10.1",
"ts-node": "^10.9.1",
"tsup": "^8.1.0",
"zod": "^3.22.5"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/env-config/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'tsup'

export default defineConfig({
entry: ['index.ts'],
dts: true,
format: ['esm'],
clean: true,
sourcemap: true,
})
Loading

0 comments on commit 4efef55

Please sign in to comment.