diff --git a/docs/_data/supporters.js b/docs/_data/supporters.js index 4f631460f2..6fcd4011a8 100755 --- a/docs/_data/supporters.js +++ b/docs/_data/supporters.js @@ -18,7 +18,7 @@ 'use strict'; const {loadImage} = require('canvas'); -const {writeFile, mkdir, rmdir} = require('fs').promises; +const {writeFile, mkdir, rm} = require('fs').promises; const {resolve} = require('path'); const debug = require('debug')('mocha:docs:data:supporters'); const needle = require('needle'); @@ -225,7 +225,7 @@ const getSupporters = async () => { } ); - await rmdir(SUPPORTER_IMAGE_PATH, {recursive: true}); + await rm(SUPPORTER_IMAGE_PATH, {recursive: true, force: true}); debug('blasted %s', SUPPORTER_IMAGE_PATH); await mkdir(SUPPORTER_IMAGE_PATH, {recursive: true}); debug('created %s', SUPPORTER_IMAGE_PATH); diff --git a/netlify.toml b/netlify.toml index e9ee7d4443..36fe1e9a47 100644 --- a/netlify.toml +++ b/netlify.toml @@ -14,8 +14,8 @@ [build.environment] DEBUG = "mocha:docs*" - NODE_VERSION = "12" - RUBY_VERSION = "2.7.1" + NODE_VERSION = "16" + RUBY_VERSION = "2.7.2" [context.deploy-preview] command = "npm start docs"