From 07afd92b1641b193214011d18b66ae6b14353d7a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 29 Nov 2024 14:14:52 +0000 Subject: [PATCH] Resolve frontend-core to local path from server and update nodemon to only watch src dirs --- packages/server/nodemon.json | 18 ++++++++++++------ packages/server/tsconfig.build.json | 4 +++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/packages/server/nodemon.json b/packages/server/nodemon.json index b0e792d945..ac8c38ccb2 100644 --- a/packages/server/nodemon.json +++ b/packages/server/nodemon.json @@ -1,13 +1,19 @@ { "watch": [ "src", - "../backend-core", - "../pro", - "../types", - "../shared-core", - "../string-templates" + "../backend-core/src", + "../pro/src", + "../types/src", + "../shared-core/src", + "../string-templates/src" ], "ext": "js,ts,json,svelte", - "ignore": ["**/*.spec.ts", "**/*.spec.js", "../*/dist/**/*", "client/**/*", "builder/**/*"], + "ignore": [ + "**/*.spec.ts", + "**/*.spec.js", + "../*/dist/**/*", + "client/**/*", + "builder/**/*" + ], "exec": "yarn build && node --no-node-snapshot ./dist/index.js" } diff --git a/packages/server/tsconfig.build.json b/packages/server/tsconfig.build.json index c4b9b8788e..4b99e298d5 100644 --- a/packages/server/tsconfig.build.json +++ b/packages/server/tsconfig.build.json @@ -19,7 +19,9 @@ "@budibase/shared-core": ["../shared-core/src"], "@budibase/pro": ["../pro/src"], "@budibase/string-templates": ["../string-templates/src"], - "@budibase/string-templates/*": ["../string-templates/*"] + "@budibase/string-templates/*": ["../string-templates/*"], + "@budibase/frontend-core": ["../frontend-core"], + "@budibase/frontend-core/*": ["../frontend-core/*"] }, "allowArbitraryExtensions": true },