0
Fork 0
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:
Daniel Lockyer 2024-10-10 09:03:12 +01:00 committed by Daniel Lockyer
parent e1da082329
commit c07a884f23

View file

@ -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