cactusoft-ca / ng-miniprofiler

An http interceptor for using MiniProfiler with Angular.
MIT License
1 stars 2 forks source link

Publish to NPM registry? #4

Open marklagendijk opened 1 year ago

marklagendijk commented 1 year ago

I've been trying to find an up-to-date library for using MiniProfiler with an Angular application. I just found this repo, and it looks promising, but I see that the package isn't published to NPM.

Could you publish it?

Aboisier commented 1 year ago

Hi!

You may use our package by adding this line to an .npmrc file in your angular workspace:

@cactusoft-ca=https://npm.pkg.github.com

and then installing it as you would with any package :)

npm i -s @cactusoft-ca/ng-miniprofiler
marklagendijk commented 1 year ago

Thanks for your response.

It looks like the Github NPM registry only allows installing when you're authenticated, which is rather problematic. Not only would all developers need to set this up, but it would also be required for the CI/CD pipelines. It might also be that the "private": true in your package.json is the issue.

May I ask why you are using Githubs' NPM registry instead of publishing to NPM, or publishing to both? Is it a matter of convenience, or do you have something against the global NPM registry?

andreilazer commented 1 year ago

I'm interested in a follow-up on this as well? Why not have it on NPM?

krzysiek-b commented 1 year ago

There is already a package with name like yours https://www.npmjs.com/package/ng-miniprofiler is this the same? The description/code also looks very similar but I do not see the NPM colaborator here.

krzysiek-b commented 1 year ago

Looks like the format of .npmrc has changed a bit see here for more details https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry but this seems does not work for me. Is the package still available?