Skip to content

Commit

Permalink
Consider the absence of devDependencies in a package.json.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelroemer committed Oct 26, 2023
1 parent 3da0780 commit d7f2633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tooling/piral-cli/src/common/importmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ async function consumeImportmap(
): Promise<Array<SharedDependency>> {
const importmap = packageDetails.importmap;
const appShell = inherited && mode === 'remote';
const availableSpecs = appShell ? packageDetails.devDependencies : {};
const availableSpecs = appShell ? packageDetails.devDependencies ?? {} : {};
const inheritanceBehavior = appShell ? 'host' : mode;

if (typeof importmap === 'string') {
Expand Down

0 comments on commit d7f2633

Please sign in to comment.