@@ -257,12 +257,6 @@ export async function bundlePlayWrightProject (playwrightConfig: string): Promis
257
257
} )
258
258
}
259
259
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
-
266
260
export async function loadPlaywrightProjectFiles ( dir : string , playWrightConfig : any , archive : Archiver ) {
267
261
const ignoredFiles = [ '**/node_modules/**' , '.git/**' ]
268
262
try {
@@ -297,21 +291,6 @@ export function gitignoreToGlob (gitignoreContent: string) {
297
291
} )
298
292
}
299
293
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
-
315
294
export async function findFilesWithPattern (
316
295
directory : string ,
317
296
pattern : string | string [ ] ,
0 commit comments