Skip to content

Issue with /lib/pkginfo.js for finding package.json #27

@owenashurst

Description

@owenashurst

I've experienced a rather serious issue in which when attempting to debug in visual studio code a solution that uses pkginfo, I would get an error for pkginfo that the package.json file cannot be found inside \lib/package.json.

I believe on line 104 of pkgingfo.js file in /lib is wrong and should actually be looking 2 directories back in the root folder.

e.g.

wrong line: contents = require(dir + '/package.json');
should be: contents = require(dir + '../../package.json');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions