Skip to content

add strictCheck option - #11

Merged
ronkorving merged 3 commits into
Wizcorp:masterfrom
UziTech:strict-check
Jan 23, 2018
Merged

ronkorving merged 3 commits into
Wizcorp:masterfrom
UziTech:strict-check

Conversation

@UziTech

@UziTech UziTech commented Jun 2, 2017

Copy link
Copy Markdown
Contributor

This will allow registering from a submodule

var codependency = require('codependency');
var requirePeer = codependency.register(module, { strictCheck: false });

fixes #4
fixes #5

@ronkorving ronkorving self-assigned this Jun 4, 2017
@ronkorving

Copy link
Copy Markdown
Collaborator

Thank you for your contribution.

#4 should already be fixed iirc.
For #5, could @Raynos perhaps confirm if this would do the trick?

Comment thread index.js
// find the nearest package.json

var pkg = exports.findPackage(baseModule, true);
var pkg = exports.findPackage(baseModule, options.strictCheck !== false);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a mention of this option to both the JSDoc above, and the ReadMe?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ronkorving
ronkorving merged commit 1ef098f into Wizcorp:master Jan 23, 2018
@ronkorving

Copy link
Copy Markdown
Collaborator

Cheers 👍

@ronkorving

Copy link
Copy Markdown
Collaborator

And released under 2.1.0

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.

Cannot be used inside non-main module Does not support nested modules.

2 participants