Skip to content

Commit

Permalink
chore: set default output dir for CEM and allow for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Jun 3, 2024
1 parent 82ce460 commit 0d4ecda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/commands/build/build-command-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export async function build({
// Generates Custom Elements Manifest file.
if (!config.context.customElementsManifestConfig?.disableAutoGeneration) {
await runTask('Generating custom elements manifest...', async () => {
await generateCustomElementsManifest(config.context, config.context.paths.rootDir, { outDir: 'dist/cem', quiet });
const outDir = config.context.customElementsManifestConfig.outputPath;
await generateCustomElementsManifest(config.context, config.context.paths.rootDir, { outDir, quiet });
});
}
}
Expand Down
4 changes: 3 additions & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export const DEFAULT_PROJECT_CONFIG: IProjectConfig = {
distributionBundleName: 'lib.js'
},
packageConfig: {},
customElementsManifestConfig: {},
customElementsManifestConfig: {
outputPath: 'dist/cem'
},
karma: {},
paths: {
rootDir: '.',
Expand Down

0 comments on commit 0d4ecda

Please sign in to comment.