Skip to content

Commit 7d418fc

Browse files
committed
chore: remove example project [sc-23256]
1 parent 68ec067 commit 7d418fc

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

packages/cli/src/services/util.ts

-21
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,6 @@ export async function bundlePlayWrightProject (playwrightConfig: string): Promis
257257
})
258258
}
259259

260-
export function getPackageJsonFiles (dir: string) {
261-
const packageJson = path.resolve(dir, 'package.json')
262-
const packageLock = path.resolve(dir, 'package-lock.json')
263-
return { packageJson, packageLock }
264-
}
265-
266260
export async function loadPlaywrightProjectFiles (dir: string, playWrightConfig: any, archive: Archiver) {
267261
const ignoredFiles = ['**/node_modules/**', '.git/**']
268262
try {
@@ -297,21 +291,6 @@ export function gitignoreToGlob (gitignoreContent: string) {
297291
})
298292
}
299293

300-
export function loadFilesDependencies (dir: string, files: string[], archive: Archiver) {
301-
const parser = new Parser({
302-
checkUnsupportedModules: false,
303-
})
304-
const dependencyFiles = files
305-
.map(file => parser.parse(file))
306-
.flatMap(({ dependencies }) => dependencies)
307-
.map(({ filePath }) => filePath)
308-
new Set(dependencyFiles)
309-
.forEach(dep => {
310-
const relPath = dep.replace(dir, '')
311-
archive.append(fsSync.createReadStream(dep), { name: relPath })
312-
})
313-
}
314-
315294
export async function findFilesWithPattern (
316295
directory: string,
317296
pattern: string | string[],

0 commit comments

Comments
 (0)