This message was deleted.
s
This message was deleted.
👀 1
l
What language?
k
What language? Node I just use npm-check-updates (ncu -u) or c# you'd have nuget Or am I not understanding the question, it's early 😃
l
It's TypeScript. I don't know much npm; is that a separate command, or a parameter to npm?
l
TypeScript will utilize
npm
. You can run
npx npm-check-updates
in the root of your project to see what has available updates. More info on flags and functionality of that tool can be found here: https://www.npmjs.com/package/npm-check-updates
l
That's separate from npm? I don't have npm installed, I run it all through Docker, so I'll have to extend my docker-compose file to expose npx as a service....
l
npx
comes with Node. If you have a Node environment running you should be able to use it no problem. I’d expect you can just exec the command in the running container.
l
Sweet, thanks, I'll try that.
l
It’s just a way to utilize a tool without having to install it. Essentially,
npx npm-check-updates
is equivalent to
npm install -g npm-check-updates
then after that running
npm-check-updates
l
Ah.. so if I build my node image with
npm install -g npm-check-updates
in the Dockerfile, I can run
npm-check-updates
and it won't have to download the module? That sounds more efficient...
Done and working. Awesome, thanks!
l
Yeah, it’s really up to you and your build system / deployment considerations. Glad it’s working! You’re welcome 😃
p
i can recommend the
npm-upgrade
package as well, so you get a nice interactive upgrade experience
👍 1