Skip to content

Commit

Permalink
fix: spec compatible "browser" mapping (#1018)
Browse files Browse the repository at this point in the history
per unofficial "spec" https://github.com/defunctzombie/package-browser-field-spec
local files should be referenced with `./`. this allows for distinction between package and local file re-mapping.

changed `"main"` as well just for consistency. doesn't really matter there.

Co-authored-by: Undefined <peizerao@gmail.com>
  • Loading branch information
AviVahl and PeterRao committed Dec 21, 2021
1 parent af213ee commit c2f9b0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"name": "ali-oss",
"version": "6.17.0",
"description": "aliyun oss(object storage service) node client",
"main": "lib/client.js",
"main": "./lib/client.js",
"files": [
"lib",
"shims",
"dist"
],
"browser": {
"lib/client.js": "./dist/aliyun-oss-sdk.js",
"./lib/client.js": "./dist/aliyun-oss-sdk.js",
"mime": "mime/lite",
"urllib": "./shims/xhr.js",
"utility": "./shims/utility.js",
Expand Down

0 comments on commit c2f9b0e

Please sign in to comment.