New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use and publish private AWS CDK construct packages to privately hosted registry: verdaccio #2142
Comments
|
Yes. 🤦🏻 Thank you! |
Hi @anh-rivergon Sorry this took so long to respond. I don't have a ton of experience publishing to private registries with projen. So I'm mostly going of the docs here.
Unfortunately not. Only AWS CodeArtifact is supported right now. I'd love a PR that adds support for any private registry by providing a token via an env variable. See: https://projen.io/node.html#scoped-private-packages
The general answer to this is to publish your own "personal" projen project type that comes pre-configured with the required settings. That way you'll have to only make changes once and all projects should auto-update. --
I think you are looking for |
I got the same problem. right now I'm using a workaround with JsonPatch, which is shorter, but ofc not better, not sure if it helps. I was able to push to a private github repository
|
I believe recent releases should make this much easier. Needs checking. We could still do with a feature that is a single option. |
I created the projenrc.js below to build a private CDK stack and publish it to a private registry. My private CDK stack uses private packages from a privately hosted registry. It works, but is there a cleaner solution?
In particular, I do not like having to copy'n paste the "Prepare Repository", "Install Dependencies", "Create js artifact", and "Collect js Artifact" steps from the projen project to all the constructs and stacks we plan to build. It will be hard to maintain and stay in sync with projen if those steps change or new steps added.
Also, I do not like having to hard code the registry -> registry: 'verdaccio.myabcnotrealcom.com'
publib-npm fails with registry: project.npmRegistry
Much appreciated for all insights. How do you setup projenrc.js to use private packages from private registry and publish private package to privately hosted registry such as verdaccio ?
The text was updated successfully, but these errors were encountered: