File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818'use strict' ;
1919
2020const { loadImage} = require ( 'canvas' ) ;
21- const { writeFile, mkdir, rmdir } = require ( 'fs' ) . promises ;
21+ const { writeFile, mkdir, rm } = require ( 'fs' ) . promises ;
2222const { resolve} = require ( 'path' ) ;
2323const debug = require ( 'debug' ) ( 'mocha:docs:data:supporters' ) ;
2424const needle = require ( 'needle' ) ;
@@ -225,7 +225,7 @@ const getSupporters = async () => {
225225 }
226226 ) ;
227227
228- await rmdir ( SUPPORTER_IMAGE_PATH , { recursive : true } ) ;
228+ await rm ( SUPPORTER_IMAGE_PATH , { recursive : true , force : true } ) ;
229229 debug ( 'blasted %s' , SUPPORTER_IMAGE_PATH ) ;
230230 await mkdir ( SUPPORTER_IMAGE_PATH , { recursive : true } ) ;
231231 debug ( 'created %s' , SUPPORTER_IMAGE_PATH ) ;
Original file line number Diff line number Diff line change 1414
1515[build .environment ]
1616 DEBUG = " mocha:docs*"
17- NODE_VERSION = " 12 "
18- RUBY_VERSION = " 2.7.1 "
17+ NODE_VERSION = " 16 "
18+ RUBY_VERSION = " 2.7.2 "
1919
2020[context .deploy-preview ]
2121 command = " npm start docs"
You can’t perform that action at this time.
0 commit comments