I have created a React application (using create-react-app). This React application contains some code that I want to publish on NPM. I managed to do it (using Rollup). The problem is with dependencies: I need it for the react application, but I don't need any dependencies for the published package. Is there any way to have dependencies installed for the react application but not listed for publication?
I have very good reasons not to create 2 different packages by the way, I'm not looking for answer to tell me to make 2 packages.