File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,13 @@ export async function convertE2EToExample(config: ConvertE2EToExampleConfig) {
446446 using _ = defer ( ( ) => console . groupEnd ( ) ) ;
447447
448448 const [ , waitForExit ] = await spawn (
449- { cwd : path . join ( __project , 'examples' ) } ,
449+ {
450+ cwd : path . join ( __project , 'examples' ) ,
451+ env : {
452+ // remove timestamps from gzip
453+ GZIP : '-n' ,
454+ } ,
455+ } ,
450456 'tar' ,
451457 // consistent sort of files (by default tar sorts files by order of the filesystem)
452458 '--sort=name' ,
@@ -455,6 +461,8 @@ export async function convertE2EToExample(config: ConvertE2EToExampleConfig) {
455461 '-czf' ,
456462 `${ config . e2e } .tar.gz` ,
457463 `--exclude=${ config . e2e } /node_modules` ,
464+ // ignore existing example archive
465+ `--exclude=${ config . e2e } /example.tar.gz` ,
458466 config . e2e ,
459467 ) ;
460468 await waitForExit ;
You can’t perform that action at this time.
0 commit comments