mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Remove usage of fs-extra
- we don't need to use fs-extra here when we can use the native fs lib
This commit is contained in:
parent
e1da082329
commit
c07a884f23
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
const path = require('path');
|
||||
const fs = require('fs-extra');
|
||||
const fs = require('fs');
|
||||
const _ = require('lodash');
|
||||
|
||||
/**
|
||||
|
@ -25,7 +25,7 @@ const makePathsAbsolute = function makePathsAbsolute(nconf, obj, parent) {
|
|||
};
|
||||
|
||||
const doesContentPathExist = function doesContentPathExist(contentPath) {
|
||||
if (!fs.pathExistsSync(contentPath)) {
|
||||
if (!fs.existsSync(contentPath)) {
|
||||
// new Error is allowed here, as we do not want config to depend on @tryghost/error
|
||||
// @TODO: revisit this decision when @tryghost/error is no longer dependent on all of ghost-ignition
|
||||
// eslint-disable-next-line ghost/ghost-custom/no-native-error
|
||||
|
|
Loading…
Reference in a new issue