diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-04-03 04:22:45 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-04-03 04:22:45 +0300 |
commit | da015eee45f6daf384598151d06a9b57ffce136e (patch) | |
tree | ecf20bb3e2749c75e8e49caceb958e94ee115d2b /lib | |
parent | 1349e27c936a8b0fc9f6440a6d6404ef3b19c587 (diff) |
read-package-json@1.3.3
Eliminates caching of package.json files, which in turn eliminates a
class of liveness problems / incomplete cache invalidation bugs / race
conditions. Also took this opportunity to standardize the file.
Closes #7074.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/unbuild.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/unbuild.js b/lib/unbuild.js index ede8482c4..d5fe0e6a0 100644 --- a/lib/unbuild.js +++ b/lib/unbuild.js @@ -30,7 +30,6 @@ function unbuild_ (silent) { return function (folder, cb_) { readJson(path.resolve(folder, "package.json"), function (er, pkg) { // if no json, then just trash it, but no scripts or whatever. if (er) return gentlyRm(folder, false, base, cb) - readJson.cache.del(folder) chain ( [ [lifecycle, pkg, "preuninstall", folder, false, true] , [lifecycle, pkg, "uninstall", folder, false, true] @@ -53,8 +52,6 @@ function rmStuff (pkg, folder, cb) { , gnm = npm.dir , top = gnm === parent - readJson.cache.del(path.resolve(folder, "package.json")) - log.verbose("unbuild rmStuff", pkg._id, "from", gnm) if (!top) log.verbose("unbuild rmStuff", "in", parent) asyncMap([rmBins, rmMans], function (fn, cb) { |