All modern versions of Node need to run packages as modules is "type": "module" in package.json, but I don't see any flags for npm init or yarn init that will add that property.
Is there a flag for either package manager or an easy way to add the value to package.json (i.e., npm package-property set type module or something similar)?