зеркало из https://github.com/mozilla/fxa.git
chore(deps): replace mkdirp with fs.mkdirSync
This commit is contained in:
Родитель
ccceb702bf
Коммит
d704a84f69
|
@ -7,7 +7,7 @@
|
|||
"lint": "eslint .",
|
||||
"audit": "npm audit --json | audit-filter --nsp-config=.nsprc --audit=-",
|
||||
"outdated": "npm outdated --depth 0 || exit 0",
|
||||
"start": "mkdirp var/public && pm2 start pm2.config.js && ../../_scripts/check-url.sh localhost:1111/__heartbeat__",
|
||||
"start": "mkdir -p var/public && pm2 start pm2.config.js && ../../_scripts/check-url.sh localhost:1111/__heartbeat__",
|
||||
"stop": "pm2 stop pm2.config.js",
|
||||
"restart": "pm2 restart pm2.config.js",
|
||||
"delete": "pm2 delete pm2.config.js",
|
||||
|
@ -46,7 +46,6 @@
|
|||
"eslint": "^8.18.0",
|
||||
"eslint-plugin-fxa": "^2.0.2",
|
||||
"insist": "1.0.1",
|
||||
"mkdirp": "0.5.1",
|
||||
"mocha": "^10.0.0",
|
||||
"mocha-text-cov": "0.1.1",
|
||||
"nock": "^13.2.2",
|
||||
|
|
|
@ -5,11 +5,10 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
const cp = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const mkdirp = require('mkdirp');
|
||||
const rimraf = require('rimraf');
|
||||
|
||||
process.env.NODE_ENV = 'development';
|
||||
|
||||
var childServer = cp.fork(path.join(__dirname, '..', 'bin', 'server.js'));
|
||||
|
@ -18,7 +17,7 @@ childServer.on('exit', process.exit);
|
|||
var childWorker = cp.fork(path.join(__dirname, '..', 'bin', 'worker.js'));
|
||||
childWorker.on('exit', process.exit);
|
||||
|
||||
mkdirp.sync(path.join(__dirname, '..', 'var', 'public'));
|
||||
fs.mkdirSync(path.join(__dirname, '..', 'var', 'public'), { recursive: true });
|
||||
var childStatic = cp.fork(path.join(__dirname, '..', 'bin', '_static.js'));
|
||||
childStatic.on('exit', process.exit);
|
||||
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
|
||||
/* eslint-disable indent */
|
||||
const assert = require('assert');
|
||||
const fs = require('fs');
|
||||
const url = require('url');
|
||||
|
||||
const mkdirp = require('mkdirp');
|
||||
const _nock = require('nock');
|
||||
const through = require('through');
|
||||
|
||||
const config = require('../../lib/config');
|
||||
mkdirp.sync(config.get('img.uploads.dest.public'));
|
||||
fs.mkdirSync(config.get('img.uploads.dest.public'), { recursive: true });
|
||||
// eslint-disable-next-line space-unary-ops
|
||||
const local = new (require('../../lib/img/local'))();
|
||||
const inject = require('./inject');
|
||||
|
|
|
@ -23456,7 +23456,6 @@ fsevents@~2.1.1:
|
|||
insist: 1.0.1
|
||||
joi: 17.4.0
|
||||
lodash: ^4.17.21
|
||||
mkdirp: 0.5.1
|
||||
mocha: ^10.0.0
|
||||
mocha-text-cov: 0.1.1
|
||||
mozlog: ^3.0.2
|
||||
|
|
Загрузка…
Ссылка в новой задаче