ember-bootstrap
Version:
Bootstrap components for Ember.js
15 lines (11 loc) • 346 B
JavaScript
;
const path = require('path');
const fs = require('fs');
module.exports = function bowerVersion(projectRoot, packageName) {
let bowerJsonPath = path.join(projectRoot, 'bower.json');
if (!fs.existsSync(bowerJsonPath)) {
return;
}
let bowerJson = require(bowerJsonPath);
return bowerJson.dependencies[packageName];
};