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:
parent
aaabf4b103
commit
7308bb9122
2 changed files with 1 additions and 2 deletions
2
.github/dev.js
vendored
2
.github/dev.js
vendored
|
@ -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')
|
||||
});
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
const loader = require('./loader');
|
||||
|
||||
module.exports = loader.loadNconf();
|
||||
module.exports.withOptions = (options) => loader.loadNconf(options);
|
||||
|
|
Loading…
Add table
Reference in a new issue