From 7c20e7701bfc5b26712f23da88843adfe1c69a86 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Fri, 19 Aug 2022 09:51:02 +0100 Subject: [PATCH] Remove mkdirp from web dependencies (#7427) GitOrigin-RevId: b170371e538ca65fccd5c21f76dc25feec909190 --- package-lock.json | 2 -- services/web/package.json | 1 - services/web/test/acceptance/src/LinkedFilesTests.js | 5 ++--- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 720ee35031..db8e6155bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34898,7 +34898,6 @@ "less-plugin-autoprefix": "^2.0.0", "mensch": "^0.3.4", "mini-css-extract-plugin": "^2.6.0", - "mkdirp": "0.5.1", "mocha": "^8.4.0", "mock-fs": "^5.1.2", "nock": "^13.1.1", @@ -42402,7 +42401,6 @@ "method-override": "^2.3.3", "mini-css-extract-plugin": "^2.6.0", "minimist": "1.2.5", - "mkdirp": "0.5.1", "mmmagic": "^0.5.3", "mocha": "^8.4.0", "mock-fs": "^5.1.2", diff --git a/services/web/package.json b/services/web/package.json index 908ff70a51..11e81ba31b 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -287,7 +287,6 @@ "less-plugin-autoprefix": "^2.0.0", "mensch": "^0.3.4", "mini-css-extract-plugin": "^2.6.0", - "mkdirp": "0.5.1", "mocha": "^8.4.0", "mock-fs": "^5.1.2", "nock": "^13.1.1", diff --git a/services/web/test/acceptance/src/LinkedFilesTests.js b/services/web/test/acceptance/src/LinkedFilesTests.js index 67a7b3382a..155bfab0fb 100644 --- a/services/web/test/acceptance/src/LinkedFilesTests.js +++ b/services/web/test/acceptance/src/LinkedFilesTests.js @@ -1,7 +1,6 @@ const { expect } = require('chai') const _ = require('underscore') -const mkdirp = require('mkdirp') -const { promisify } = require('util') +const fs = require('fs') const Settings = require('@overleaf/settings') const User = require('./helpers/User').promises @@ -39,7 +38,7 @@ describe('LinkedFiles', function () { beforeEach(async function () { owner = new User() await owner.login() - await promisify(mkdirp)(Settings.path.dumpFolder) + await fs.promises.mkdir(Settings.path.dumpFolder, { recursive: true }) }) describe('creating a project linked file', function () {