From c2f9b0eb89258f4bd76cc6b4308dd28a8b4bac6a Mon Sep 17 00:00:00 2001 From: Avi Vahl Date: Tue, 21 Dec 2021 09:01:49 +0200 Subject: [PATCH] fix: spec compatible "browser" mapping (#1018) 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 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 2b87d7ec7..3fcc68461 100644 --- a/package.json +++ b/package.json @@ -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",