fix: make changes to allow esm imports to work properly
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user