Skip to content

Commit

Permalink
fix: use absolute directories (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmchaplin authored Nov 25, 2024
1 parent 0f3aab1 commit 056c011
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lwc-dev-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()) ?? {
Expand Down

0 comments on commit 056c011

Please sign in to comment.