Clear package.json cache before populate configs

This commit is contained in:
Aurélien Georget 2015-11-30 16:06:37 +01:00
parent b7f674b86a
commit 665bbdf556
2 changed files with 4 additions and 1 deletions

View File

@ -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'));