Skip to content

Commit

Permalink
chore: package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ssi02014 committed Nov 10, 2023
1 parent 74f5059 commit deea624
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
"name": "react-thumbnail-generator",
"version": "3.1.1",
"description": "react-thumbnail-generator",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export default {
output: [
{
file: pkg.main,
sourcemap: false,
sourcemap: true,
format: 'cjs',
},
{
file: pkg.module,
sourcemap: false,
sourcemap: true,
format: 'esm',
},
],
Expand Down

0 comments on commit deea624

Please sign in to comment.