Skip to content

Commit 3c795df

Browse files
committed
Fixing script that sets the lowest deps to allow file: deps
1 parent 37ef3fe commit 3c795df

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)