Skip to content

Commit

Permalink
update module export
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasferreiralimax committed Oct 25, 2024
1 parent ac89692 commit b2896d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/generate-dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const distPackageJson = {
},
files: [
'voicecapture-react.js',
'voicecapture.d.ts',
'voicecapture-react.d.ts',
'VoiceCapture.translate.js'
],
main: './voicecapture-react.js',
types: './voicecapture.d.ts',
types: './voicecapture-react.d.ts',
exports: {
".": {
"import": './voicecapture-react.js',
Expand All @@ -58,5 +58,5 @@ fs.copyFileSync(path.resolve(__dirname, '../README.md'), path.join(outputDir, 'R
console.log('README.md copied to dist.');

// Optionally copy declaration file
fs.copyFileSync(path.resolve(__dirname, '../src/voicecapture.d.ts'), path.join(outputDir, 'voicecapture.d.ts'));
fs.copyFileSync(path.resolve(__dirname, '../src/voicecapture-react.d.ts'), path.join(outputDir, 'voicecapture-react.d.ts'));
console.log('voicecapture.d.ts copied to dist.');
File renamed without changes.

0 comments on commit b2896d1

Please sign in to comment.