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 #102

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Fix for empty Licenses page.
  • Loading branch information
zarembsky committed Jun 13, 2018
commit 3aeb4a16719bc43a2a23d94f02b6ce945aed7399
@@ -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.