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

add packageDir option to transforms #113

Closed
wants to merge 3 commits into from

Conversation

shinout
Copy link

@shinout shinout commented Feb 8, 2016

fixes #112

In transform functions,

module.exports = function (file, opts) {
    console.log(opts.packageDir);
 };

opts.packageDir is the directory where package.json is located. It's optional and doesn't affect to transforms taking packageDir option.

@shinout shinout closed this Jun 6, 2016
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.

pass pkg.__dirname to transform functions
1 participant