Skip to content

Commit

Permalink
adding compilation results with extension .d.cts and .d.mts
Browse files Browse the repository at this point in the history
  • Loading branch information
fermartin17 committed May 13, 2024
1 parent 2dd93c3 commit 4378bb4
Show file tree
Hide file tree
Showing 2 changed files with 1,028 additions and 967 deletions.
12 changes: 12 additions & 0 deletions rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ const configs = [
sourcemap: true,
exports: 'named',
},
{
file: pkg.main.replace('.js', '.d.cts'),
format: 'cjs',
sourcemap: false,
exports: 'named',
},
{
file: pkg.module.replace('.js', '.d.mts'),
format: 'esm',
sourcemap: false,
exports: 'named',
},
],
external: ['axios'],
plugins: [
Expand Down
Loading

0 comments on commit 4378bb4

Please sign in to comment.