From 8b4e792b3fd2115fb73fdfd4236ea02c4f91d33f Mon Sep 17 00:00:00 2001 From: remivledder Date: Wed, 24 Nov 2021 14:07:14 +0100 Subject: [PATCH 1/2] Explicitly define exports for npm package, closes #134 Signed-off-by: remivledder --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e528ac0..4796e7c 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,9 @@ "import": "./modules/index.js", "default": "./tslib.js" }, - "./": "./" + "./tslib.es6": "./tslib.es6.js", + "./modules/index": "./modules/index.js", + "./tslib": "./tslib.js", + "./package.json": "./package.json" } } From 2adcd43d453816b7aa88dfa6b2db79e73329a404 Mon Sep 17 00:00:00 2001 From: remivledder Date: Wed, 24 Nov 2021 14:36:30 +0100 Subject: [PATCH 2/2] file extension should be defined for exports #134 Signed-off-by: remivledder --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4796e7c..c6e6327 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ "import": "./modules/index.js", "default": "./tslib.js" }, - "./tslib.es6": "./tslib.es6.js", "./modules/index": "./modules/index.js", - "./tslib": "./tslib.js", + "./tslib.es6.js": "./tslib.es6.js", + "./tslib.js": "./tslib.js", "./package.json": "./package.json" } }