Skip to content

Commit d772785

Browse files
committed
minor #868 Fixing script that sets the lowest deps to allow file: deps (weaverryan)
This PR was merged into the main branch. Discussion ---------- Fixing script that sets the lowest deps to allow file: deps Commits ------- 3c795df Fixing script that sets the lowest deps to allow file: deps
2 parents 37ef3fe + 3c795df commit d772785

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/force-lowest-dependencies.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,17 @@ const childProcess = require('child_process');
1515
const vueLowVersion = '2.5.0';
1616
const vueLoaderLowVersion = '15.0.11';
1717

18+
/**
19+
* @param {string} dependency
20+
* @param {string} range
21+
* @return {Promise}
22+
*/
1823
function getLowestVersion(dependency, range) {
1924
return new Promise((resolve, reject) => {
25+
if (range.startsWith('file:')) {
26+
resolve([dependency, range]);
27+
}
28+
2029
childProcess.exec(
2130
`npm view "${dependency}@${range}" version`,
2231
{ encoding: 'utf-8' },

0 commit comments

Comments
 (0)