Skip to content

Commit

Permalink
build: update build params
Browse files Browse the repository at this point in the history
  • Loading branch information
ashgw committed Nov 30, 2024
1 parent 0edf718 commit eda4108
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@
"email": "[email protected]"
},
"sideEffects": false,
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
},
"types": "./dist/index.d.ts",
"files": [
"dist/",
"package.json",
Expand Down
6 changes: 2 additions & 4 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import rollupPluginAutoExternal from 'rollup-plugin-auto-external';
import rollupPluginDts from 'rollup-plugin-dts';
import path from 'path';

import pkg from './package.json' assert { type: 'json' };

const common: RollupOptions = {
input: 'src/index.ts',
external: [],
Expand All @@ -22,12 +20,12 @@ const runtimes: RollupOptions = {
...common,
output: [
{
file: pkg.exports.import,
file: './dist/index.mjs',
format: 'esm',
sourcemap: false,
},
{
file: pkg.exports.require,
file: './dist/index.cjs',
format: 'cjs',
sourcemap: false,
},
Expand Down

0 comments on commit eda4108

Please sign in to comment.