Skip to content

Commit 056c011

Browse files
authored
fix: use absolute directories (#263)
1 parent 0f3aab1 commit 056c011

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lwc-dev-server/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ async function createLWCServerConfig(
5757
const { namespace } = projectJson;
5858

5959
// e.g. lwc folders in force-app/main/default/lwc, package-dir/lwc
60-
const namespacePaths = (await Promise.all(packageDirs.map((dir) => glob(`${dir.fullPath}/**/lwc`)))).flat();
60+
const namespacePaths = (
61+
await Promise.all(packageDirs.map((dir) => glob(`${dir.fullPath}/**/lwc`, { absolute: true })))
62+
).flat();
6163

6264
const ports = serverPorts ??
6365
(await ConfigUtils.getLocalDevServerPorts()) ?? {

0 commit comments

Comments
 (0)