dependencies: Remove mkdirp.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-11-10 13:34:32 -08:00 committed by Anders Kaseorg
parent efd7c06e30
commit 9c6e261861
5 changed files with 5 additions and 16 deletions

View File

@ -138,7 +138,6 @@
"eslint-plugin-unicorn": "^56.0.0",
"jsdom": "^25.0.0",
"minimist": "^1.2.6",
"mkdirp": "^3.0.1",
"mockdate": "^3.0.2",
"nyc": "^17.0.0",
"openapi-examples-validator": "^5.0.0",

View File

@ -425,9 +425,6 @@ importers:
minimist:
specifier: ^1.2.6
version: 1.2.8
mkdirp:
specifier: ^3.0.1
version: 3.0.1
mockdate:
specifier: ^3.0.2
version: 3.0.5
@ -6247,11 +6244,6 @@ packages:
engines: {node: '>=10'}
hasBin: true
mkdirp@3.0.1:
resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==}
engines: {node: '>=10'}
hasBin: true
mockdate@3.0.5:
resolution: {integrity: sha512-iniQP4rj1FhBdBYS/+eQv7j1tadJ9lJtdzgOpvsOHng/GbcDh2Fhdeq+ZRldrPYdXvCyfFUmFeEwEGXZB5I/AQ==}
@ -16134,8 +16126,6 @@ snapshots:
mkdirp@1.0.4: {}
mkdirp@3.0.1: {}
mockdate@3.0.5: {}
mouse-change@1.4.0:

View File

@ -2,11 +2,11 @@
/* global $, CSS */
const fs = require("node:fs");
const path = require("node:path");
const {program} = require("commander");
require("css.escape");
const mkdirp = require("mkdirp");
const puppeteer = require("puppeteer");
const options = {};
@ -76,7 +76,7 @@ async function run() {
clip.y += 5;
const imagePath = options.imagePath;
const imageDir = path.dirname(imagePath);
mkdirp.sync(imageDir);
await fs.promises.mkdir(imageDir, {recursive: true});
await page.screenshot({path: imagePath, clip});
} catch (error) {
console.log(error);

View File

@ -2,11 +2,11 @@
/* global $, CSS */
const fs = require("node:fs");
const path = require("node:path");
const {program} = require("commander");
require("css.escape");
const mkdirp = require("mkdirp");
const puppeteer = require("puppeteer");
const options = {};
@ -93,7 +93,7 @@ async function run() {
clip.height -= 8;
const imagePath = options.imagePath;
const imageDir = path.dirname(imagePath);
mkdirp.sync(imageDir);
await fs.promises.mkdir(imageDir, {recursive: true});
await page.screenshot({path: imagePath, clip});
} catch (error) {
console.log(error);

View File

@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 319 # Last bumped for message-link class
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = (299, 1) # bumped 2024-11-08 to patch svgicons2svgfont
PROVISION_VERSION = (300, 0) # bumped 2024-11-10 to remove mkdirp