mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Always require fs-extra - consistency change
no issue
This commit is contained in:
parent
7353c87d7f
commit
d83f474ff8
@ -2,7 +2,7 @@
|
||||
// API for DB operations
|
||||
var Promise = require('bluebird'),
|
||||
path = require('path'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
pipeline = require('../utils/pipeline'),
|
||||
apiUtils = require('./utils'),
|
||||
exporter = require('../data/export'),
|
||||
|
@ -2,7 +2,7 @@
|
||||
// RESTful API for the Tag resource
|
||||
var Promise = require('bluebird'),
|
||||
_ = require('lodash'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
pipeline = require('../utils/pipeline'),
|
||||
globalUtils = require('../utils'),
|
||||
apiUtils = require('./utils'),
|
||||
|
@ -1,4 +1,4 @@
|
||||
var fs = require('fs'),
|
||||
var fs = require('fs-extra'),
|
||||
session = require('cookie-session'),
|
||||
crypto = require('crypto'),
|
||||
path = require('path'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
// # Backup Database
|
||||
// Provides for backing up the database before making potentially destructive changes
|
||||
var fs = require('fs'),
|
||||
var fs = require('fs-extra'),
|
||||
path = require('path'),
|
||||
Promise = require('bluebird'),
|
||||
config = require('../../config'),
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Handles the creation of an HTTP Server for Ghost
|
||||
var debug = require('ghost-ignition').debug('server'),
|
||||
Promise = require('bluebird'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
path = require('path'),
|
||||
_ = require('lodash'),
|
||||
config = require('./config'),
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
var supportedLocales = ['en'],
|
||||
_ = require('lodash'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
path = require('path'),
|
||||
chalk = require('chalk'),
|
||||
MessageFormat = require('intl-messageformat'),
|
||||
|
@ -1,5 +1,5 @@
|
||||
var _ = require('lodash').runInContext(),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
Promise = require('bluebird'),
|
||||
path = require('path'),
|
||||
htmlToText = require('html-to-text'),
|
||||
|
@ -1,5 +1,5 @@
|
||||
var _ = require('lodash'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
path = require('path'),
|
||||
Promise = require('bluebird'),
|
||||
spawn = require('child_process').spawn,
|
||||
|
@ -1,4 +1,4 @@
|
||||
var fs = require('fs'),
|
||||
var fs = require('fs-extra'),
|
||||
Promise = require('bluebird'),
|
||||
path = require('path'),
|
||||
parsePackageJson = require('../../utils/packages').parsePackageJSON;
|
||||
|
@ -90,7 +90,7 @@ AppSandbox.prototype.loadModule = function loadModuleSandboxed(modulePath) {
|
||||
};
|
||||
|
||||
AppSandbox.defaults = {
|
||||
blacklist: ['knex', 'fs', 'http', 'sqlite3', 'mysql', 'ghost']
|
||||
blacklist: ['knex', 'fs-extra', 'http', 'sqlite3', 'mysql', 'ghost']
|
||||
};
|
||||
|
||||
module.exports = AppSandbox;
|
||||
|
@ -3,7 +3,7 @@
|
||||
*/
|
||||
|
||||
var Promise = require('bluebird'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
common = require('../../lib/common'),
|
||||
readFile = Promise.promisify(fs.readFile);
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
var Promise = require('bluebird'),
|
||||
_ = require('lodash'),
|
||||
join = require('path').join,
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
parsePackageJson = require('./parse-package-json'),
|
||||
common = require('../../lib/common'),
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
var Promise = require('bluebird'),
|
||||
csvParser = require('csv-parser'),
|
||||
_ = require('lodash'),
|
||||
fs = require('fs');
|
||||
fs = require('fs-extra');
|
||||
|
||||
function readCSV(options) {
|
||||
var columnsToExtract = options.columnsToExtract || [],
|
||||
|
@ -1,4 +1,4 @@
|
||||
var fs = require('fs');
|
||||
var fs = require('fs-extra');
|
||||
|
||||
module.exports = function zipFolder(folderToZip, destination, callback) {
|
||||
var archiver = require('archiver'),
|
||||
|
@ -1,4 +1,4 @@
|
||||
var fs = require('fs'),
|
||||
var fs = require('fs-extra'),
|
||||
path = require('path'),
|
||||
crypto = require('crypto'),
|
||||
storage = require('../../adapters/storage'),
|
||||
|
@ -1,5 +1,5 @@
|
||||
var crypto = require('crypto'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
path = require('path'),
|
||||
config = require('../../config'),
|
||||
urlService = require('../../services/url');
|
||||
|
@ -5,7 +5,7 @@ var should = require('should'),
|
||||
sinon = require('sinon'),
|
||||
config = require('../../../../../core/server/config'),
|
||||
models = require('../../../../../core/server/models'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
_ = require('lodash'),
|
||||
ghost = testUtils.startGhost,
|
||||
request,
|
||||
|
@ -3,7 +3,7 @@ var should = require('should'),
|
||||
testUtils = require('../../utils'),
|
||||
Promise = require('bluebird'),
|
||||
ObjectId = require('bson-objectid'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
_ = require('lodash'),
|
||||
context = testUtils.context,
|
||||
common = require('../../../server/lib/common'),
|
||||
|
@ -1,5 +1,5 @@
|
||||
var should = require('should'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
config = require('../../../../server/config'),
|
||||
common = require('../../../../server/lib/common'),
|
||||
schedulingUtils = require('../../../../server/adapters/scheduling/utils');
|
||||
|
@ -2,7 +2,7 @@
|
||||
var should = require('should'), // jshint ignore:line
|
||||
sinon = require('sinon'),
|
||||
crypto = require('crypto'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
common = require('../../../../server/lib/common'),
|
||||
settingsCache = require('../../../../server/settings/cache'),
|
||||
privateBlogging = require('../../../../server/apps/private-blogging/lib/middleware'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
var should = require('should'), // jshint ignore:line
|
||||
sinon = require('sinon'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
servePublicFile = require('../../../server/web/middleware/serve-public-file'),
|
||||
|
||||
sandbox = sinon.sandbox.create();
|
||||
|
@ -4,7 +4,7 @@ var should = require('should'), // jshint ignore:line
|
||||
_ = require('lodash'),
|
||||
Promise = require('bluebird'),
|
||||
crypto = require('crypto'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
models = require('../../server/models'),
|
||||
exporter = require('../../server/data/export'),
|
||||
schema = require('../../server/data/schema'),
|
||||
|
@ -1,6 +1,6 @@
|
||||
var should = require('should'), // jshint ignore:line
|
||||
sinon = require('sinon'),
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
tmp = require('tmp'),
|
||||
join = require('path').join,
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
var should = require('should'), // jshint ignore:line
|
||||
tmp = require('tmp'),
|
||||
join = require('path').join,
|
||||
fs = require('fs'),
|
||||
fs = require('fs-extra'),
|
||||
|
||||
// Things we are testing
|
||||
packages = require('../../../server/utils/packages'),
|
||||
|
Loading…
Reference in New Issue
Block a user