are we required to use commonjs module from CLI example ? (its like that in package.json) and what whill happen if i change it to module
Solution
Required: no What will happen: the same as with converting anything CJS to ESM. You'll have to update your imports to have extensions or use import mapping and you can't use require,