backend-manager 2.5.18 → 2.5.19
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 +1 -1
- package/src/manager/index.js +6 -1
package/package.json
CHANGED
package/src/manager/index.js
CHANGED
|
@@ -675,7 +675,12 @@ function resolveProjectPackage() {
|
|
|
675
675
|
}
|
|
676
676
|
|
|
677
677
|
function requireJSON5(p) {
|
|
678
|
-
|
|
678
|
+
try {
|
|
679
|
+
return JSON5.parse(jetpack.read(p))
|
|
680
|
+
} catch (e) {
|
|
681
|
+
console.error('Failed to load JSON', e);
|
|
682
|
+
throw e;
|
|
683
|
+
}
|
|
679
684
|
}
|
|
680
685
|
|
|
681
686
|
module.exports = Manager;
|