Skip to content

Commit

Permalink
Merge pull request #29 from EveripediaNetwork/fix-move-to-bundling-wi…
Browse files Browse the repository at this point in the history
…th-tsup

Move to bundling with tsup
  • Loading branch information
Royal-lobster authored Sep 4, 2024
2 parents 8feffbe + 811615b commit dd93045
Show file tree
Hide file tree
Showing 7 changed files with 714 additions and 139 deletions.
5 changes: 5 additions & 0 deletions .changeset/ten-tomatoes-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@everipedia/iq-login": minor
---

Moves bundling to be done with tsup
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,17 @@ function MyComponent() {

The package is designed to work with Tailwind CSS and Shad-cn Theme. Make sure to add the shad-cn theme to your project.
You can learn more about it here: https://ui.shadcn.com/themes

# 📝 Usage on Pages router

Make sure to add the package in transpilePackages in your next.config.js file.

```tsx
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ["@everipedia/iq-login"]
};

export default nextConfig;
```
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"repository": "https://github.com/EveripediaNetwork/iq-login",
"license": "MIT",
"scripts": {
"build": "tsc -p tsconfig.json && tsc-esm-fix --target='dist' --ext='.js'",
"format": "biome format . --write",
"lint": "biome check .",
"lint:fix": "pnpm lint --write",
"watch:build": "tsc -p tsconfig.json -w",
"build": "tsup src/index.ts --format esm,cjs --dts",
"watch:build": "tsup src/index.ts --format esm,cjs --dts --watch",
"release": "pnpm build && changeset publish"
},
"engines": {
Expand All @@ -28,30 +28,30 @@
"@web3auth/web3auth-wagmi-connector": "^6.0.0",
"boring-avatars": "^1.10.2",
"cookies-next": "^4.2.1",
"tsc-esm-fix": "^2.20.10",
"vitest": "^2.0.5",
"zod": "^3.23.8",
"zustand": "^4.5.5"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@rainbow-me/rainbowkit": "^2.1.4",
"@tanstack/react-query": "^5.53.1",
"@types/node": "^20.11.24",
"@types/react": "^18.3.5",
"changeset": "^0.2.6",
"react": "^18.3.1",
"tsup": "^8.2.4",
"typescript": "^5.0.4",
"viem": "2.x",
"wagmi": "^2.12.4",
"@types/react": "^18.3.5",
"react": "^18.3.1",
"@tanstack/react-query": "^5.53.1",
"@rainbow-me/rainbowkit": "^2.1.4"
"wagmi": "^2.12.4"
},
"peerDependencies": {
"viem": "2.x",
"wagmi": "^2.12.4",
"@rainbow-me/rainbowkit": "^2.1.4",
"@tanstack/react-query": "^5.53.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"@tanstack/react-query": "^5.53.1",
"@rainbow-me/rainbowkit": "^2.1.4"
"viem": "2.x",
"wagmi": "^2.12.4"
},
"files": [
"dist",
Expand Down
Loading

0 comments on commit dd93045

Please sign in to comment.