Skip to content

Conversation

@manuel-di-iorio
Copy link

This new optional parameter (for the core method) accepts a setting forceRoot of type boolean, which allows to force the provided root path, without searching for a package.json file

const pkgRequire = require("pkg-require")(__dirname, {forceRoot: true});

This parameter accepts an optional setting forceRoot: boolean, which allows to force the provided root path without searching for a package.json file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant