mkdir -p dist/commonjs dist/esm
tsc
mv dist/*.d.ts dist/*.js dist/esm/
sed -i 's/"module": "NodeNext"/"module": "commonjs"/' package.json
tsc
mv dist/*.d.ts dist/*.js dist/commonjs/
