Skip to content

Commit 09a9302

Browse files
committed
[fix] multiple installation of Shadcn helper CLI
1 parent fb5bd8d commit 09a9302

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,20 @@ jobs:
1616
- uses: actions/checkout@v4
1717
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
1818

19+
- uses: pnpm/action-setup@v4
20+
with:
21+
version: 10
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
cache: pnpm
26+
- name: Install Dependencies
27+
env:
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
run: |
30+
pnpm i --frozen-lockfile
31+
pnpm install-shadcn
32+
1933
- name: Deploy to Vercel
2034
id: vercel-deployment
2135
uses: amondnet/vercel-action@v25

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"prepare": "husky",
7-
"postinstall": "shadcn-helper install",
7+
"install-shadcn": "shadcn-helper install",
88
"test": "lint-staged",
99
"registry:build": "shadcn build",
1010
"dev": "next dev --webpack",
@@ -48,7 +48,7 @@
4848
"lint-staged": "^16.2.7",
4949
"mobx-github": "^0.6.2",
5050
"shadcn": "^3.6.2",
51-
"shadcn-helper": "^0.5.3",
51+
"shadcn-helper": "^0.5.5",
5252
"tailwindcss": "^4.1.18",
5353
"typescript": "~5.9.3"
5454
},

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

registry.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"mobx-restful",
9494
"lodash.debounce"
9595
],
96+
"devDependencies": ["@types/lodash.debounce"],
9697
"registryDependencies": ["@mobx-restful-shadcn/scroll-boundary"],
9798
"files": [
9899
{
@@ -275,6 +276,7 @@
275276
"mobx-restful",
276277
"web-utility"
277278
],
279+
"devDependencies": ["@types/lodash.debounce"],
278280
"files": [
279281
{
280282
"type": "registry:component",
@@ -307,6 +309,7 @@
307309
"mobx-restful",
308310
"web-utility"
309311
],
312+
"devDependencies": ["@types/lodash.debounce"],
310313
"files": [
311314
{
312315
"type": "registry:component",

0 commit comments

Comments
 (0)