mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 23:29:33 +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'));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user