diff --git a/install/package.json b/install/package.json index 35561d23ba..dd503c142f 100644 --- a/install/package.json +++ b/install/package.json @@ -84,7 +84,7 @@ "lru-cache": "9.0.1", "material-design-lite": "1.3.0", "mime": "3.0.0", - "mkdirp": "2.1.6", + "mkdirp": "3.0.0", "mongodb": "5.2.0", "morgan": "1.10.0", "mousetrap": "1.6.5", diff --git a/install/web.js b/install/web.js index b9f75d36ab..dd908679cf 100644 --- a/install/web.js +++ b/install/web.js @@ -11,7 +11,7 @@ const webpack = require('webpack'); const nconf = require('nconf'); const Benchpress = require('benchpressjs'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const { paths } = require('../src/constants'); const sass = require('../src/utils').getSass(); diff --git a/loader.js b/loader.js index 9a1f0cdbad..a960327208 100644 --- a/loader.js +++ b/loader.js @@ -6,7 +6,7 @@ const url = require('url'); const path = require('path'); const { fork } = require('child_process'); const logrotate = require('logrotate-stream'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const file = require('./src/file'); const pkg = require('./package.json'); diff --git a/src/file.js b/src/file.js index ff836b05da..639cc9f58c 100644 --- a/src/file.js +++ b/src/file.js @@ -4,7 +4,7 @@ const fs = require('fs'); const nconf = require('nconf'); const path = require('path'); const winston = require('winston'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const mime = require('mime'); const graceful = require('graceful-fs'); diff --git a/src/meta/build.js b/src/meta/build.js index 81ce4067ca..d7b545dc80 100644 --- a/src/meta/build.js +++ b/src/meta/build.js @@ -5,7 +5,7 @@ const winston = require('winston'); const nconf = require('nconf'); const _ = require('lodash'); const path = require('path'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const chalk = require('chalk'); const cacheBuster = require('./cacheBuster'); diff --git a/src/meta/cacheBuster.js b/src/meta/cacheBuster.js index 55f35764a9..58129ff2f8 100644 --- a/src/meta/cacheBuster.js +++ b/src/meta/cacheBuster.js @@ -2,7 +2,7 @@ const fs = require('fs'); const path = require('path'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const winston = require('winston'); const filePath = path.join(__dirname, '../../build/cache-buster'); diff --git a/src/meta/js.js b/src/meta/js.js index 7578f6b8f6..ccba341eaf 100644 --- a/src/meta/js.js +++ b/src/meta/js.js @@ -2,7 +2,7 @@ const path = require('path'); const fs = require('fs'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const file = require('../file'); const plugins = require('../plugins'); diff --git a/src/meta/languages.js b/src/meta/languages.js index e15360fb61..fe9dfd302b 100644 --- a/src/meta/languages.js +++ b/src/meta/languages.js @@ -4,7 +4,7 @@ const _ = require('lodash'); const nconf = require('nconf'); const path = require('path'); const fs = require('fs'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const file = require('../file'); diff --git a/src/meta/templates.js b/src/meta/templates.js index ee172342d5..ec3c54882d 100644 --- a/src/meta/templates.js +++ b/src/meta/templates.js @@ -1,6 +1,6 @@ 'use strict'; -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const winston = require('winston'); const path = require('path'); const fs = require('fs'); diff --git a/test/build.js b/test/build.js index 9d63f764db..100f232136 100644 --- a/test/build.js +++ b/test/build.js @@ -3,7 +3,7 @@ const path = require('path'); const fs = require('fs'); const assert = require('assert'); -const mkdirp = require('mkdirp'); +const { mkdirp } = require('mkdirp'); const db = require('./mocks/databasemock'); const file = require('../src/file'); diff --git a/test/mocks/databasemock.js b/test/mocks/databasemock.js index dc7e9f5d2d..5cb8af1d34 100644 --- a/test/mocks/databasemock.js +++ b/test/mocks/databasemock.js @@ -210,7 +210,7 @@ async function setupMockDefaults() { await fs.promises.rm('test/uploads', { recursive: true, force: true }); - const mkdirp = require('mkdirp'); + const { mkdirp } = require('mkdirp'); const folders = [ 'test/uploads',