Skip to content

Commit

Permalink
rmdir to rm [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jan 19, 2022
1 parent 5943c4e commit 429f1fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/_data/supporters.js
Expand Up @@ -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');
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Expand Up @@ -15,7 +15,7 @@
[build.environment]
DEBUG = "mocha:docs*"
NODE_VERSION = "16"
RUBY_VERSION = "2.7.1"
RUBY_VERSION = "2.7.2"

[context.deploy-preview]
command = "npm start docs"
Expand Down

0 comments on commit 429f1fa

Please sign in to comment.