Skip to content

Commit

Permalink
fix(endo): Ensure conditions include default, import, and endo
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Mar 17, 2022
1 parent 73032ac commit ba67369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/compartment-mapper/src/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ const digestLocation = async (powers, moduleLocation, options) => {

/** @type {Set<string>} */
const tags = new Set();
tags.add('endo');
tags.add('import');
tags.add('default');

const packageDescriptor = parseLocatedJson(
packageDescriptorText,
Expand Down
2 changes: 2 additions & 0 deletions packages/compartment-mapper/src/node-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ const graphPackages = async (

tags = new Set(tags || []);
tags.add('import');
tags.add('default');
tags.add('endo');

if (packageDescriptor === undefined) {
throw new Error(
Expand Down

0 comments on commit ba67369

Please sign in to comment.