I'm using npm to handle my dependencies for a typescript project.
In one step of my CI process, I'm performing integration tests. The only dependencies I need for that are Jest and Pactum. Currently I'm running npm install
to get the correct versions of those dependencies, but it feels like overkill when I only need two of them. It costs pipeline minutes, and just takes time.
Is there any way to specify install of a dependency and use the version that is defined in the package file?
So like npm install package@version
, but I don't want to repeat the version because it is already defined in package.json and will surely break sooner or later. So basically, I'd want to specify another section alongside devDependencies
called integrationTestDependencies
.