Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / build-scripts / find-eslint-dependencies.js
blob38a85c88ed22bc8d6433d27ad5043fff4d8f7a5e
1 'use strict';
3 var packageJson = require('../package.json');
4 var eslintFiles = Object.keys(packageJson.devDependencies)
5 .filter(function(dependency) {
6 return dependency.indexOf('eslint') === 0;
7 })
8 .map(function(dependency) {
9 if (process.argv[1] === '--semver') {
10 return dependency + '@' + packageJson.devDependencies[dependency];
11 } else {
12 return dependency;
14 });
16 console.log(eslintFiles.join('\n'));