The used versions of chalk and pretty-bytes are ESM packages which breaks CJS consumption as they are not loaded using ESM dynamic imports.
Example of error
Error [ERR_REQUIRE_ESM]: require() of ES Module /node_modules/critters/node_modules/chalk/source/index.js from /node_modules/critters/dist/critters.js not supported.
This commit downgrades these packages to their CJS versions.
The used versions of
chalk
andpretty-bytes
are ESM packages which breaks CJS consumption as they are not loaded using ESM dynamic imports.Example of error
This commit downgrades these packages to their CJS versions.