@vltpkg/package-json 1.6.0 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -82,6 +82,8 @@ export class PackageJson {
82
82
  writeFileSync(filename, stringify(manifest, undefined, indent));
83
83
  this.#cache.set(dir, manifest);
84
84
  this.#pathCache.set(manifest, dir);
85
+ // a read that failed before this write is no longer valid
86
+ this.#errCache.delete(dir);
85
87
  }
86
88
  catch (err) {
87
89
  // If there was an error writing to this package.json then also delete it from our cache
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/package-json",
3
3
  "description": "Manage reading package.json files",
4
- "version": "1.6.0",
4
+ "version": "1.6.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -13,8 +13,8 @@
13
13
  "url": "http://vlt.sh"
14
14
  },
15
15
  "dependencies": {
16
- "@vltpkg/error-cause": "1.6.0",
17
- "@vltpkg/types": "1.6.0",
16
+ "@vltpkg/error-cause": "1.6.2",
17
+ "@vltpkg/types": "1.6.2",
18
18
  "polite-json": "^5.0.0",
19
19
  "walk-up-path": "^4.0.0"
20
20
  },