I know that create react app put react scripts as dependency for numerous reasons. But having react-scripts as dependency in a library cause issues when referencing this library in an app with a different react-scripts version.
So I would recommend passing react-scripts and webpack as devDepencies (not needed at runtime for the library).
Take care