Skip to content

Commit

Permalink
Remove usage of fs-extra
Browse files Browse the repository at this point in the history
- we don't need to use fs-extra here when we can use the native fs lib
  • Loading branch information
daniellockyer committed Oct 10, 2024
1 parent e1da082 commit c07a884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghost/core/core/shared/config/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
const path = require('path');
const fs = require('fs-extra');
const fs = require('fs');
const _ = require('lodash');

/**
Expand All @@ -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
Expand Down

0 comments on commit c07a884

Please sign in to comment.