From 6082f6a5e82b3b723ac6c7d1ac3a4b77344ccef3 Mon Sep 17 00:00:00 2001 From: Maciek Sitkowski Date: Sun, 26 Nov 2023 19:06:38 +0100 Subject: [PATCH] refresh remix on changes in ui lib --- apps/remix/remix.config.js | 7 +++---- libs/ui/src/components/button.tsx | 2 +- turbo.json | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/remix/remix.config.js b/apps/remix/remix.config.js index 9c201d7..62bc6f8 100644 --- a/apps/remix/remix.config.js +++ b/apps/remix/remix.config.js @@ -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/**/*'], } diff --git a/libs/ui/src/components/button.tsx b/libs/ui/src/components/button.tsx index 88b77b5..1117dcc 100644 --- a/libs/ui/src/components/button.tsx +++ b/libs/ui/src/components/button.tsx @@ -7,7 +7,7 @@ export const Button = ({ children, ...props }: ButtonProps) => { return (