Skip to content

Commit

Permalink
upgrade tsup, declare multiple entries
Browse files Browse the repository at this point in the history
  • Loading branch information
giannif committed Feb 1, 2024
1 parent c413823 commit 67fe8d6
Show file tree
Hide file tree
Showing 4 changed files with 429 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"prettier-eslint-cli": "^7.1.0",
"publint": "^0.1.12",
"ts-jest": "^29.1.0",
"tsup": "^7.0.0",
"tsup": "^8.0.0",
"turbo": "1.10.11",
"typescript": "^5.0.4"
},
Expand Down
11 changes: 10 additions & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"clean": "rm -rf ./dist",
"types": "tsc ./src/index.tsx -d --emitDeclarationOnly -declarationDir ./dist",
"dev": "storybook dev -p 5001",
"build": "run -T tsup src/index.ts --format cjs,esm --dts --legacyOutput",
"build": "run -T tsup --format cjs,esm --dts --legacyOutput",
"prepublish": "npm run clean && npm run build",
"deploy-storybook": "storybook-to-ghpages",
"snapshot": "NODE_ENV=PERCY storybook build && percy storybook ./storybook-static",
Expand Down Expand Up @@ -74,6 +74,15 @@
"react": "16.10.2 - 18",
"styled-components": ">= 5"
},
"tsup": {
"entry": [
"src/index.ts",
"src/components/**.tsx",
"src/components/attribution/**.tsx",
"src/components/video/**.tsx",
"src/components/search-bar/**.tsx"
]
},
"dependencies": {
"@giphy/colors": "*",
"@giphy/js-analytics": "*",
Expand Down
5 changes: 5 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { defineConfig } from 'tsup'

export default defineConfig({
treeshake: true,
})
Loading

0 comments on commit 67fe8d6

Please sign in to comment.