esm: allow configuring default package type
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
This is purely to allow people make builds that play around with the idea of changing the default package type, per comments in https://github.com/nodejs/node/issues/32316 . This breaks many expectations and likely should not be done as a runtime flag for now (e.g. the test suite for node cannot run if this this is set to module
).