I have a library I am writing. My library is build using rollup.
I want to include it in my main application. The app is built using create-react-app.
I would like to use the dev version of the library in the app without publishing it to the npm registry. It becomes more so painful to publish and use. (even with local repositories like local-npm) because a version can be published only once. I have seen the hack provided here - Using SNAPSHOT in private NPM like in Maven
I tried to use the npm link
. Apparently, CRA will not use the dep if the real path is outside of the base folder even if a symlink is present.
What is the best way of handling the situation? I want to set this up as a precedent for all my future app work and am looking for a solution as well as a best practice I can adhere to.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…