Skip to content

Commit

Permalink
Merge pull request #15 from MaikoTan/pkg-exports
Browse files Browse the repository at this point in the history
chore: update package.json exports for newer nodejs resolution
  • Loading branch information
dragon-fish authored Aug 12, 2024
2 parents a759ac9 + 5984d65 commit a662ffe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
"name": "wiki-saikou",
"version": "3.3.1",
"description": "The library provides the out of box accessing to MediaWiki API in both browsers & Node.js, and the syntax is very similar to vanilla `new mw.Api()`. TypeScript definition included~",
"type": "commonjs",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"browser": "./dist/index.umd.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"types": {
"import": "./lib/index.d.ts",
"require": "./lib/index.d.ts"
},
"import": "./dist/index.mjs",
"require": "./lib/index.js",
"browser": "./dist/index.umd.js"
}
},
"files": [
"dist",
"lib"
Expand Down

0 comments on commit a662ffe

Please sign in to comment.