fix: make changes to allow esm imports to work properly

This commit is contained in:
Stevan Freeborn
2023-02-21 13:23:07 -06:00
parent 7e33c5ecaa
commit b989adc01d
46 changed files with 392 additions and 376 deletions
+15
View File
@@ -0,0 +1,15 @@
const fs = require('fs');
const path = require('path');
const esmPackageJson = `{
"type": "module"
}`;
const cjsPackageJson = `{
"type": "commonjs"
}`;
const parentDir = path.resolve(__dirname, '..');
fs.writeFileSync(path.join(parentDir, 'dist/esm/package.json'), esmPackageJson);
fs.writeFileSync(path.join(parentDir, 'dist/cjs/package.json'), cjsPackageJson);