Skip to content

Commit

Permalink
feat: add update components script instead use static components (#12)
Browse files Browse the repository at this point in the history
* feat: add update components script instead use static components

* feat: add manually control whether need to update @nextui-org/react

* fix: optimize log

* fix: optimize log

* chore: update

* fix: ci error

* refactor: auto update the components.json
  • Loading branch information
winchesHe committed Apr 2, 2024
1 parent 9e04fd4 commit 2f3478c
Show file tree
Hide file tree
Showing 10 changed files with 693 additions and 324 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
},
"cSpell.words": ["nextui", "tailwindcss"]
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@
"link:cli": "pnpm link --global",
"link:remove": "pnpm uninstall --global nextui-cli",
"build": "tsup",
"update:components": "tsx src/scripts/update/update-components.ts",
"lint": "eslint . --max-warnings=0",
"lint:fix": "eslint . -max-warnings=0 --fix",
"check:prettier": "prettier --check .",
"check:types": "tsc --noEmit",
"prepare": "husky install"
"prepare": "husky install",
"postbuild": "pnpm run update:components",
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"async-retry": "1.3.3",
Expand Down Expand Up @@ -82,6 +85,7 @@
"husky": "8.0.3",
"lint-staged": "14.0.1",
"tsup": "7.2.0",
"tsx": "4.7.1",
"typescript": "5.2.2"
},
"engines": {
Expand Down
Loading

0 comments on commit 2f3478c

Please sign in to comment.