From 439d71f6e148b91d2d15f2cdeec7c4e5027d91dd Mon Sep 17 00:00:00 2001 From: Drew Chaplin Date: Wed, 20 Nov 2024 16:15:14 -0500 Subject: [PATCH] fix: use absolute directories --- src/lwc-dev-server/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lwc-dev-server/index.ts b/src/lwc-dev-server/index.ts index 06ed176..b06f123 100644 --- a/src/lwc-dev-server/index.ts +++ b/src/lwc-dev-server/index.ts @@ -57,7 +57,9 @@ async function createLWCServerConfig( const { namespace } = projectJson; // e.g. lwc folders in force-app/main/default/lwc, package-dir/lwc - const namespacePaths = (await Promise.all(packageDirs.map((dir) => glob(`${dir.fullPath}/**/lwc`)))).flat(); + const namespacePaths = ( + await Promise.all(packageDirs.map((dir) => glob(`${dir.fullPath}/**/lwc`, { absolute: true }))) + ).flat(); const ports = serverPorts ?? (await ConfigUtils.getLocalDevServerPorts()) ?? {