Skip to content

Commit

Permalink
build: adjust exports entries
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon-fish committed Aug 12, 2024
1 parent ae7ffe1 commit 0644388
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"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": "module",
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"browser": "./dist/index.umd.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"browser": "./dist/index.umd.cjs",
"exports": {
".": {
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"files": [
Expand All @@ -21,9 +21,7 @@
"scripts": {
"test": "mocha test/**/*.spec.ts",
"clean": "rimraf dist lib",
"build": "npm run clean && vite build && pkgroll",
"build:browser": "vite build",
"build:node": "pkgroll --dist lib --sourcemap",
"build": "npm run clean && vite build",
"prepublish": "npm run build"
},
"publishConfig": {
Expand Down

0 comments on commit 0644388

Please sign in to comment.