feat(compartment-mapper): support peerDependencies and bundleDependencies
MODIFY
packages/compartment-mapper/src/node-modules.js
packages/compartment-mapper/src/node-modules.js
@@ -255,6 +255,9 @@ const graphPackage = async (
const dependencies = {};
const children = [];
const predicates = packageDescriptor.dependencies || {};
+ assign(predicates, packageDescriptor.peerDependencies || {});
+ assign(predicates, packageDescriptor.bundleDependencies || {});
+
if (dev) {
assign(predicates, packageDescriptor.devDependencies || {});
}

MODIFY
packages/compartment-mapper/test/fixtures-0/node_modules/brooke/brooke.js
packages/compartment-mapper/test/fixtures-0/node_modules/brooke/brooke.js
+import { clarke } from 'clarke';
+
export const brooke = 'Brooke';
if (!Object.isFrozen(globalThis)) {

MODIFY
packages/compartment-mapper/test/fixtures-0/node_modules/brooke/package.json
packages/compartment-mapper/test/fixtures-0/node_modules/brooke/package.json
"exports": {
".": "./brooke.js"
},
+ "peerDependencies": {
+ "clarke": "^1.0.0"
+ },
"scripts": {
"preinstall": "echo DO NOT INSTALL TEST FIXTURES; exit -1"
}

feat(compartment-mapper): support peerDependencies and bundleDependencies