Skip to content

Commit

Permalink
chore(core): fix package rollup config and distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
SMAKSS committed Dec 31, 2023
1 parent ff4e10a commit efb3991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"node": ">=18.0.0"
},
"exports": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
".": "./dist/index.js"
},
"files": [
"dist"
Expand Down Expand Up @@ -59,7 +58,7 @@
"react scroll direction and position"
],
"license": "MIT",
"main": "dist/esm/index.js",
"main": "dist/es/index.js",
"name": "@smakss/react-scroll-direction",
"peerDependencies": {
"react": ">=16.8.0"
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export default [
input: 'src/index.ts',
output: [
{
file: packageJson.module,
file: 'dist/index.js',
format: 'esm',
exports: 'named',
sourcemap: true
sourcemap: 'inline'
}
],
plugins: [resolve(), typescript()],
Expand Down

0 comments on commit efb3991

Please sign in to comment.