Comparing version 0.3.3 to 0.3.4
@@ -14,3 +14,2 @@ /*! | ||
var find = require('find-pkg'); | ||
var cached; | ||
@@ -24,2 +23,3 @@ module.exports = function(types, options) { | ||
options = options || {}; | ||
var cached; | ||
@@ -29,2 +29,4 @@ return function plugin(app) { | ||
var cwds = [app.cwd || process.cwd()]; | ||
Object.defineProperty(this, 'cwd', { | ||
@@ -35,3 +37,6 @@ configurable: true, | ||
cached = app.cache.cwd = path.resolve(cwd); | ||
app.emit('cwd', cached); | ||
if (cwds[cwds.length - 1] !== cached) { | ||
cwds.push(cached); | ||
app.emit('cwd', cached); | ||
} | ||
}, | ||
@@ -38,0 +43,0 @@ get: function() { |
{ | ||
"name": "base-cwd", | ||
"description": "Base plugin that adds a getter/setter for the current working directory.", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/node-base/base-cwd", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8427
64