Thanks for creating an issue! Please fill out this form so we can be
sure to have all the information we need, and to minimize back and forth.
What are you trying to do?
I am attempting to use the includePackageJsons configuration of copy-modules-webpack-plugin to include package.json files with the node_modules packages as created by copy-modules-webpack-plugin.
What feature or behavior is this required for?
I am attempting to use the new NIQS expanded Javascript scanning functionality on a webpack project. In order to do so, I need to include package.json files for each of the node_modules packages.
How could we solve this issue? (Not knowing is okay!)
I am not sure. Maybe an example of the config showing proper use of the includePackageJsons property.
Anything else?
I am running the copy-modules-webpack-plugin on a React project, using @craco/craco. This is the craco.config.js I am using:
I run the plugin via an npm script, which runs "craco build".
I am using 2.0.2 of copy-modules-webpack-plugin, and 4.1.0 of craco.
Listing of webpack_modules/node_modules/*/package.json:
$: ls webpack_modules
node_modules
src
$: ls webpack_modules/node_modules/*/package.json
ls: webpack_modules/node_modules/*/package.json: No such file or directory
Most likely I am missing a key step, but have been unable to identify it.
Thanks for creating an issue! Please fill out this form so we can be sure to have all the information we need, and to minimize back and forth.
What are you trying to do? I am attempting to use the includePackageJsons configuration of copy-modules-webpack-plugin to include package.json files with the node_modules packages as created by copy-modules-webpack-plugin.
What feature or behavior is this required for? I am attempting to use the new NIQS expanded Javascript scanning functionality on a webpack project. In order to do so, I need to include package.json files for each of the node_modules packages.
How could we solve this issue? (Not knowing is okay!) I am not sure. Maybe an example of the config showing proper use of the includePackageJsons property.
Anything else? I am running the copy-modules-webpack-plugin on a React project, using @craco/craco. This is the craco.config.js I am using:
I run the plugin via an npm script, which runs "craco build".
I am using 2.0.2 of copy-modules-webpack-plugin, and 4.1.0 of craco.
Listing of webpack_modules/node_modules/*/package.json:
Most likely I am missing a key step, but have been unable to identify it.