npm-pkgbuild 8.2.0 → 8.2.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -70,25 +70,31 @@ export class NodeModulesContentProvider extends ContentProvider {
70
70
  })) {
71
71
  if (!toBeSkipped.test(name)) {
72
72
  if (name.endsWith("package.json")) {
73
- const json = shrinkNPM(
74
- JSON.parse(
75
- await readFile(join(pkgSourceDir, name), utf8StreamOptions)
76
- ),
77
- {}
78
- );
79
-
80
- if (json) {
81
- yield Object.assign(
82
- new StringContentEntry(name, JSON.stringify(json)),
83
- this.entryProperties
73
+ try {
74
+ const json = shrinkNPM(
75
+ JSON.parse(
76
+ await readFile(join(pkgSourceDir, name), utf8StreamOptions)
77
+ ),
78
+ {}
84
79
  );
80
+
81
+ if (json) {
82
+ yield Object.assign(
83
+ new StringContentEntry(name, JSON.stringify(json)),
84
+ this.entryProperties
85
+ );
86
+ }
87
+
88
+ continue;
89
+ } catch (e) {
90
+ console.error(e, name);
85
91
  }
86
- } else {
87
- yield Object.assign(
88
- new FileSystemEntry(name, pkgSourceDir),
89
- this.entryProperties
90
- );
91
92
  }
93
+
94
+ yield Object.assign(
95
+ new FileSystemEntry(name, pkgSourceDir),
96
+ this.entryProperties
97
+ );
92
98
  }
93
99
  }
94
100
  }