Skip to content

Commit 3cdaeba

Browse files
authored
🐛 Fix plugin registration error with frozen output module (#92)
## Summary - Removes dead code that tried to set `logger.level` on the output module - ES modules are frozen objects, causing "Cannot add property level, object is not extensible" error - The output module uses `config.verbose` internally via `configure()`, not a `level` property ## Test plan - [x] Verified `npx vizzly static-site --help` works without warnings - [x] Verified `npx vizzly tdd start` works without plugin registration errors
1 parent 8a81a4f commit 3cdaeba

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

clients/static-site/src/plugin.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ export default {
4545
* @param {Object} context.services - Service container
4646
*/
4747
register(program, { config, logger, services }) {
48-
// Override logger level to 'info' for static-site command
49-
// The CLI logger defaults to 'warn' but static-site needs 'info' for progress
50-
logger.level = 'info';
51-
5248
program
5349
.command('static-site <path>')
5450
.description(

clients/storybook/src/plugin.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ export default {
4141
* @param {Object} context.services - Service container
4242
*/
4343
register(program, { config, logger, services }) {
44-
// Override logger level to 'info' for storybook command
45-
// The CLI logger defaults to 'warn' but storybook needs 'info' for progress
46-
logger.level = 'info';
47-
4844
program
4945
.command('storybook <path>')
5046
.description('Capture screenshots from static Storybook build')

0 commit comments

Comments
 (0)