Skip to content

Commit

Permalink
Updated to most recent version
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRappl committed May 25, 2023
1 parent 7d743a9 commit 4ef2734
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/core/bin/pilet-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ const target = `${outputPath}/index.js`;
const defaultApp = package.piral ? package.piral.name : undefined;
const debugDocumentation = bundler.callDebugPiralFromMonoRepo;

bundler.callDebugPiralFromMonoRepo = (args) => {
bundler.callDebugPiralFromMonoRepo = async (args) => {
const { makeExternals } = require('piral-cli/utils');
const data = require('../package.json');
const externals = Object.keys(data.importmap.imports);
args.entryFiles = getEntryFile(baseDir);
args.externals = makeExternals(baseDir, { ...data.dependencies, ...data.devDependencies }, data.pilets.externals);
return debugDocumentation(args);
args.externals = await makeExternals(baseDir, { ...data.dependencies, ...data.devDependencies }, externals);
return await debugDocumentation(args);
};

yargs
Expand Down

0 comments on commit 4ef2734

Please sign in to comment.