cat >dist/common/package.json <<!EOF
{
    "type": "commonjs"
}
!EOF

cat >dist/module/package.json <<!EOF
{
    "type": "module"
}
!EOF
