Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
support defining an alternate plugin root
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Nov 17, 2016
1 parent 06af5c3 commit 0e4d4fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/id_plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var resolve = require('path').resolve;

module.exports = function () {
var root = process.cwd();
module.exports = function (root) {
if (!root) root = process.cwd();
var pkg = require(resolve(root, 'package.json'));

return {
Expand Down

0 comments on commit 0e4d4fa

Please sign in to comment.