Skip to content

Commit

Permalink
chore: fix aliases type resolution (#1889)
Browse files Browse the repository at this point in the history
  • Loading branch information
alessey authored Jan 29, 2025
1 parent 8607454 commit e7360a3
Show file tree
Hide file tree
Showing 4 changed files with 936 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-points-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

**chore**: Fix type aliases. By @alessey #1889
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"repository": "https://github.com/coinbase/onchainkit.git",
"license": "MIT",
"scripts": {
"build": "packemon build --addEngines --addFiles --loadConfigs --declaration && npx packemon validate --no-license --no-people --no-repo && tailwindcss -i ./src/styles/index.css -o ./src/tailwind.css --minify && tailwindcss -i ./src/styles/index-with-tailwind.css -o ./src/styles.css --minify",
"build": "packemon build --addEngines --addFiles --loadConfigs --declaration && tscpaths -p tsconfig.esm.json -s ./src -o ./esm && npx packemon validate --no-license --no-people --no-repo && tailwindcss -i ./src/styles/index.css -o ./src/tailwind.css --minify && tailwindcss -i ./src/styles/index-with-tailwind.css -o ./src/styles.css --minify",
"check": "biome check --write .",
"check:unsafe": "biome check . --fix --unsafe",
"ci:check": "biome ci --formatter-enabled=false --linter-enabled=false",
Expand Down Expand Up @@ -77,6 +77,7 @@
"rimraf": "^5.0.5",
"storybook": "^8.2.9",
"tailwindcss": "^3.4.3",
"tscpaths": "^0.0.9",
"tsup": "^8.3.5",
"typescript": "~5.3.3",
"vite": "^5.3.3",
Expand Down
10 changes: 10 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ export default defineConfig({
},
);

// Update any type aliases
spawnSync('tscpaths', [
'-p',
'tsconfig.esm.json',
'-s',
'src',
'-o',
'playground/nextjs-app-router/onchainkit/esm',
]);

// Copy tailwind styles
spawnSync('cp', [
'src/styles.css',
Expand Down
Loading

0 comments on commit e7360a3

Please sign in to comment.