Skip to content

Commit

Permalink
Merge pull request #33 from Ayc0/Ayc0/exports-field
Browse files Browse the repository at this point in the history
Use exports field in package.json + use mjs extensions
  • Loading branch information
Ayc0 authored Mar 28, 2023
2 parents 965727b + ca89c7b commit a3bd980
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 a3bd980

Please sign in to comment.