By nwmarsh1992
I am struggling to find documentation or an answer through self testing to get my infrastructure setup.
I have simple hello world packages setup deploying to app platform through the github repo integration from control panel, but now I want to add private npm repo and a local root lib folder. Neither of which I am having much success with.
@scope:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken:${NPM_TOKEN}
I have tried echoing from preinstall, prepare, I have tried export NPM_TOKEN=NPM_TOKEN
Some examples covering these use cases would be extremely helpful.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
After ALOT of trial and error (159 commits, since I was using app platform integration for deployments).
I found a solution to root lib, however it doesn’t feel quite correct. But I’ll post it here so others may work with it.
By installing root lib via package.json, but I have to directly reference the dist folder instead of just the base package, even though the lib package.json has main as dist/index.js
//packages/my-package/function1/package.json
"@myscope/api-lib": "file:../../../lib/dist",
I am still looking for answers to how to install a private npm repo, and I would like possible alternatives to this solution as it feels a bit wrong.
**Note: It seems the Functions’s do not like having the tsconfig setup as NodeNext / Modules, I ended up with a lot of problems with that before reverting the output back to commonjs **
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.