mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
Clear package.json cache before populate configs
This commit is contained in:
parent
b7f674b86a
commit
665bbdf556
@ -105,6 +105,9 @@ module.exports = function (strapi) {
|
||||
config['config/functions/*']
|
||||
);
|
||||
|
||||
// Remove cache
|
||||
delete require.cache[path.resolve(strapi.config.appPath, 'package.json')];
|
||||
|
||||
// Local `package.json`.
|
||||
const packageJSON = require(path.resolve(strapi.config.appPath, 'package.json'));
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ module.exports = function (cb) {
|
||||
|
||||
self.hooks._api.reload();
|
||||
});
|
||||
|
||||
|
||||
self.hooks._config.reload();
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user