diff --git a/lib/createInlinePluginCreator.js b/lib/createInlinePluginCreator.js index 0b89e34..422e291 100644 --- a/lib/createInlinePluginCreator.js +++ b/lib/createInlinePluginCreator.js @@ -176,6 +176,13 @@ function createInlinePluginCreator(packages, multiContext) { // Call other plugins. await plugins.prepare(context); + // Prevent deps change rollback. + const _manifest = getManifest(path); + Object.assign(_manifest.dependencies, manifest.dependencies); + Object.assign(_manifest.devDependencies, manifest.devDependencies); + Object.assign(_manifest.peerDependencies, manifest.peerDependencies); + writeFileSync(path, JSON.stringify(_manifest)); + // Package is prepared. pkg._prepared = true;