We are currently working on a project that has a specific dependency requirement for the latest beta build from an npm library. However, there are also -dev builds within the library.
For instance, in the "x-library" there might be versions like:
"1.2.3-dev.294 // released today
"1.2.3-beta.123" // <--- preferred version released yesterday
"1.2.3-dev.293" // released a week ago
"1.2.3-beta.122" // released a month ago
Is there a way to automatically fetch and use the latest 'beta' build in the package.json file, like this:
devDependencies: {
...
"x-library": "latest-beta" // just for clarity
}