Skip to content

Commit

Permalink
fix(cli): fix the embed-as-dependencies option on the `export-dynam…
Browse files Browse the repository at this point in the history
…ic-plugin` CLI... (#1478)

... when run on a wrapper plugin that doesn't use a monorepo structure.

Signed-off-by: David Festal <[email protected]>
  • Loading branch information
davidfestal authored Apr 8, 2024
1 parent 79db649 commit edd019e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function backend(opts: OptionValues): Promise<string> {
pkg,
packagesToEmbed,
monoRepoPackages,
createRequire(paths.targetDir),
createRequire(`${paths.targetDir}/package.json`),
[],
);
const embeddedPackages = embeddedResolvedPackages.map(e => e.packageName);
Expand Down Expand Up @@ -731,7 +731,7 @@ function isPackageShared(
}

function validatePluginEntryPoints(target: string): string {
const dynamicPluginRequire = createRequire(target);
const dynamicPluginRequire = createRequire(`${target}/package.json`);

// require plugin main module

Expand Down

0 comments on commit edd019e

Please sign in to comment.