Skip to content

Commit

Permalink
Additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dlvoy committed Nov 13, 2023
1 parent 07f34ed commit f5748c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "html-license-gen",
"version": "1.0.1",
"version": "1.0.2",
"description": "Generate HTML with license text from NPM/Yarn dependencies",
"bin": {
"html-license-gen": "./build/html-license-gen"
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ async function getPkgLicense(pkg: PkgInfo): Promise<LicenseInfo> {

hasLicenseInfo = await new Promise<boolean>((resolve) => {
if (fs.existsSync(packageLocalFile)) {
console.log(`Loading package.json from ${pkg.localPackageFile} for ${pkg.name}`);
const pkgPayload = fs.readFileSync(packageLocalFile, 'utf8');
const pkgInfo: PkgJsonData = JSON.parse(pkgPayload);
if (pkgInfo.license) {
Expand Down

0 comments on commit f5748c3

Please sign in to comment.