File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 31
31
},
32
32
"dependencies" : {
33
33
"@app-config/logging" : " ^2.4.2" ,
34
+ "@app-config/utils" : " ^2.4.2" ,
34
35
"@types/fs-extra" : " 9" ,
35
36
"@types/tmp" : " 0.2" ,
36
37
"fs-extra" : " 9" ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { dir } from 'tmp-promise';
3
3
import { outputFile , remove } from 'fs-extra' ;
4
4
import { stdin } from 'mock-stdin' ;
5
5
import { isTestEnvAndShouldNotPrompt } from '@app-config/logging' ;
6
+ import { isWindows } from '@app-config/utils' ;
6
7
7
8
// function that joins the temp dir to a filename
8
9
type JoinDir = ( filename : string ) => string ;
@@ -32,7 +33,14 @@ export async function withTempFiles(
32
33
33
34
await callback ( ( filename ) => join ( folder , filename ) , folder ) ;
34
35
} finally {
35
- await remove ( folder ) ;
36
+ await remove ( folder ) . catch ( ( error ) => {
37
+ console . warn ( error ) ;
38
+
39
+ // we'll just ignore this, it's spurious in CI
40
+ if ( isWindows && error . code !== 'EBUSY' ) {
41
+ throw error ;
42
+ }
43
+ } ) ;
36
44
}
37
45
}
38
46
Original file line number Diff line number Diff line change 7
7
"include" : [" src" ],
8
8
"exclude" : [" node_modules" ],
9
9
"references" : [
10
- { "path" : " ../app-config-logging" }
10
+ { "path" : " ../app-config-logging" },
11
+ { "path" : " ../app-config-utils" }
11
12
]
12
13
}
You can’t perform that action at this time.
0 commit comments