2021年1月18日星期一

Is it possible to have npm get a dependency from local files but fallback to a published package?

I'm developing both an application and a package which it will depend on. I'd like to use git submodules to include the package in my dev environment and build using a published package from npm when I compile for production. What is the easiest way to achieve something like this?

https://stackoverflow.com/questions/65785328/is-it-possible-to-have-npm-get-a-dependency-from-local-files-but-fallback-to-a-p January 19, 2021 at 12:05PM

没有评论:

发表评论