0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Switched to accessing config loader directly

- I lowered the code coverage on the repo to the point where
  it started failing because I added a new export to the config library
- this wasn't easy to add tests for because the existing config tests
  use the loader directly and not the library export
- instead, I'm just going to make the dev script access the loader, and
  make a note to clean this up in the future when we pull out the config
  module
This commit is contained in:
Daniel Lockyer 2022-10-06 16:13:46 +07:00
parent aaabf4b103
commit 7308bb9122
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

2
.github/dev.js vendored
View file

@ -4,7 +4,7 @@ const exec = util.promisify(require('child_process').exec);
const concurrently = require('concurrently');
const config = require('../ghost/core/core/shared/config').withOptions({
const config = require('../ghost/core/core/shared/config/loader').loadNconf({
customConfigPath: path.join(__dirname, '../ghost/core')
});

View file

@ -1,4 +1,3 @@
const loader = require('./loader');
module.exports = loader.loadNconf();
module.exports.withOptions = (options) => loader.loadNconf(options);