Skip to content

Commit

Permalink
Use exports field in package.json + use mjs extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayc0 committed Mar 28, 2023
1 parent 965727b commit ca89c7b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
11 changes: 10 additions & 1 deletion packages/manatea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@
"source": "src/index.ts",
"umd:main": "dist/manatea.umd.js",
"main": "dist/manatea.js",
"module": "dist/manatea.m.js",
"module": "dist/manatea.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/manatea.modern.mjs",
"browser": "./dist/manatea.modern.mjs",
"require": "./dist/manatea.js"
},
"./package.json": "./package.json"
},
"license": "MIT",
"author": "Ayc0",
"repository": "[email protected]:Ayc0/Manatea.git",
Expand Down
13 changes: 11 additions & 2 deletions packages/react-manatea/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@
"source": "src/index.ts",
"umd:main": "dist/react-manatea.umd.js",
"main": "dist/react-manatea.js",
"module": "dist/react-manatea.m.js",
"typings": "dist/index.d.ts",
"module": "dist/react-manatea.mjs",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/react-manatea.modern.mjs",
"browser": "./dist/react-manatea.modern.mjs",
"require": "./dist/react-manatea.js"
},
"./package.json": "./package.json"
},
"license": "MIT",
"author": "Ayc0",
"repository": "[email protected]:Ayc0/Manatea.git",
Expand Down

0 comments on commit ca89c7b

Please sign in to comment.