Skip to content

Commit

Permalink
fix(plugin-webpack): keep devDependencies, dependencies, `optiona…
Browse files Browse the repository at this point in the history
…lDependencies` and `peerDependencies` in the distributed package.json (#3007)
  • Loading branch information
erikian authored Oct 27, 2022
1 parent 35a26ea commit 0f75ce0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/plugin/webpack/src/WebpackPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ the generated files). Instead, it is ${JSON.stringify(pj.main)}`);
if (pj.config) {
delete pj.config.forge;
}
pj.devDependencies = {};
pj.dependencies = {};
pj.optionalDependencies = {};
pj.peerDependencies = {};

await fs.writeJson(path.resolve(buildPath, 'package.json'), pj, {
spaces: 2,
Expand Down

0 comments on commit 0f75ce0

Please sign in to comment.