Skip to content

Commit

Permalink
refresh remix on changes in ui lib
Browse files Browse the repository at this point in the history
  • Loading branch information
sitek94 committed Nov 26, 2023
1 parent 2a226b3 commit 6082f6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions apps/remix/remix.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
export default {
ignoredRouteFiles: ['**/.*'],

// Bundle UI lib, so that it's not necessary to include build step within the lib itself.
// serverDependenciesToBundle: ['@repo/ui'],
// Restart server when UI lib changes
// watchPaths: ['../../libs/ui/**/*'],
// Restart server when UI lib changes as described in this discussion:
// https://github.com/remix-run/remix/pull/3188
watchPaths: ['../../libs/ui/**/*'],
}
2 changes: 1 addition & 1 deletion libs/ui/src/components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Button = ({ children, ...props }: ButtonProps) => {
return (
<button
type="button"
className="rounded-md bg-red-500 px-4 py-2 text-white"
className="rounded-md bg-blue-500 px-4 py-2 text-white"
{...props}
>
{children}
Expand Down
3 changes: 2 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"lint": {
"dependsOn": ["^build"]
},
"dev": {
"develop": {
"dependsOn": ["build"],
"cache": false,
"persistent": true
}
Expand Down

0 comments on commit 6082f6a

Please sign in to comment.