Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for empty Licenses page (GH-1187) #103

Merged
merged 2 commits into from Jun 13, 2018
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Next
Fix for empty Licenses page (GH-1187)
  • Loading branch information
zarembsky committed Jun 13, 2018
commit efe1e6cc179f822ad9a76a354307a3a4397568d8
@@ -19,7 +19,7 @@ const fs = require('fs-extra');
const read = require('read-file');
const path = require('path');

path.extname('index.html')
path.extname('index.html');

//Build list of licenses
const licenseList = {};
@@ -38,8 +38,10 @@ checker.init({
if(key !== 'browser-core') {
const packagePath = `./node_modules/${key}/package.json`;
if(fs.pathExistsSync(packagePath)) {
const newKey = jsonfile.readFileSync(packagePath)['_id'];
keysArray.push(newKey);
const {name, version} = jsonfile.readFileSync(packagePath);
if(name && version) {
keysArray.push(name + "@" + version);
}
}
}
});
ProTip! Use n and p to navigate between commits in a pull request.