File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -433,12 +433,17 @@ await using _ = {
433433 [ Symbol . asyncDispose ] : ( ) => tempDir . rm_rf ( ) ,
434434} ;
435435const extractionDir = await tempDir . join ( "extracted" ) . mkdir ( ) ;
436+ // TODO: is there a 100% reliable way to test against paths that *will* be packed?
437+ // Note that this has to take into account `.gitignore`, `.npmignore`, and `"files"` — with globs and excludes.
438+ // For now, we print the command to make it clear that some heavy lifting is going on (and that it's not our fault that it's slow).
436439const data : { filename : string } [ ] = await new PrintableShellCommand ( "npm" , [
437440 "pack" ,
438441 "--json" ,
439442 "--ignore-scripts" ,
440443 [ "--pack-destination" , tempDir ] ,
441- ] ) . json ( ) ;
444+ ] )
445+ . print ( )
446+ . json ( ) ;
442447const tgzPath = tempDir . join ( data [ 0 ] . filename ) ;
443448await new PrintableShellCommand ( "tar" , [
444449 [ "-C" , extractionDir ] ,
You can’t perform that action at this time.
0 commit comments