Skip to content

Commit 3bd7f6c

Browse files
committed
fix: use basePath relative paths in the generated PW bundle
Otherwise workspace packages/files get included with the wrong path.
1 parent 2d29733 commit 3bd7f6c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/cli/src/services/util.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ export async function loadPlaywrightProjectFiles (
283283
dir: string, pwConfigParsed: PlaywrightConfig, include: string[], archive: Archiver,
284284
lockFile: string,
285285
) {
286-
const ignoredFiles = ['**/node_modules/**', '.git/**']
287286
const parser = new Parser({
288287
workspace: Session.workspace,
289288
})
@@ -312,14 +311,6 @@ export async function loadPlaywrightProjectFiles (
312311
...entryDefaults,
313312
name: Session.relativePosixPath(packageJsonFile),
314313
})
315-
// handle workspaces
316-
archive.glob('**/package.json', {
317-
cwd: dir,
318-
ignore: ignoredFiles,
319-
}, {
320-
...entryDefaults,
321-
prefix,
322-
})
323314
for (const includePattern of include) {
324315
archive.glob(includePattern, { cwd: dir }, {
325316
...entryDefaults,

0 commit comments

Comments
 (0)