File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 18
18
'use strict' ;
19
19
20
20
const { loadImage} = require ( 'canvas' ) ;
21
- const { writeFile, mkdir, rmdir } = require ( 'fs' ) . promises ;
21
+ const { writeFile, mkdir, rm } = require ( 'fs' ) . promises ;
22
22
const { resolve} = require ( 'path' ) ;
23
23
const debug = require ( 'debug' ) ( 'mocha:docs:data:supporters' ) ;
24
24
const needle = require ( 'needle' ) ;
@@ -225,7 +225,7 @@ const getSupporters = async () => {
225
225
}
226
226
) ;
227
227
228
- await rmdir ( SUPPORTER_IMAGE_PATH , { recursive : true } ) ;
228
+ await rm ( SUPPORTER_IMAGE_PATH , { recursive : true , force : true } ) ;
229
229
debug ( 'blasted %s' , SUPPORTER_IMAGE_PATH ) ;
230
230
await mkdir ( SUPPORTER_IMAGE_PATH , { recursive : true } ) ;
231
231
debug ( 'created %s' , SUPPORTER_IMAGE_PATH ) ;
Original file line number Diff line number Diff line change 14
14
15
15
[build .environment ]
16
16
DEBUG = " mocha:docs*"
17
- NODE_VERSION = " 12 "
18
- RUBY_VERSION = " 2.7.1 "
17
+ NODE_VERSION = " 16 "
18
+ RUBY_VERSION = " 2.7.2 "
19
19
20
20
[context .deploy-preview ]
21
21
command = " npm start docs"
You can’t perform that action at this time.
0 commit comments