ameerthehacker / blazepack

⚡ Blazing fast dev server powered by sandpack
GNU Lesser General Public License v3.0
234 stars 17 forks source link

Private NPM registry support? #1

Closed mihir0x69 closed 3 years ago

mihir0x69 commented 3 years ago

I wanted to try this on a real world project to see if it benefits us. But it doesn't seem to honor .npmrc? Really want to try this one out! Is there any way that readme doesn't cover to make this work?

ameerthehacker commented 3 years ago

I need to check on how sandpack handles .npmrc, will get back to you on this.

ameerthehacker commented 3 years ago

@KarandikarMihir v0.0.38 supports private npm packages 🚀

We now honour the project level .npmrc file and if it is not found we fallback to user level .npmrc file and then finally the global .npmrc file. Currently we only support scoped private npm packages. To use the scoped private npm packages you need to fist login into the npm registry and add the scope config to .npmrc

@myorg:registry=https://registry.myorg.com
//registry.myorg.com/:_authToken=secrettoken

after above setup you should be able to use your private npm packages in blazepack 🎉 , let me know if you face any issues.