From f598e77b1a7f6147f750c1c78f0c5c797f08b90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vannicatte?= Date: Thu, 31 Oct 2024 14:01:24 +0100 Subject: [PATCH] fix(javascript): allow import from dist (#4060) --- templates/javascript/clients/package.mustache | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/javascript/clients/package.mustache b/templates/javascript/clients/package.mustache index 18758acee2..abee19ae1f 100644 --- a/templates/javascript/clients/package.mustache +++ b/templates/javascript/clients/package.mustache @@ -41,7 +41,7 @@ "default": "./dist/builds/browser.umd.js" } }, - "./src/*": "./src/*.ts" + "./dist/builds/*": "./dist/builds/*.js" }, "jsdelivr": "./dist/builds/browser.umd.js", "unpkg": "./dist/builds/browser.umd.js", @@ -101,7 +101,9 @@ "import": "./dist/lite/builds/browser.js", "default": "./dist/lite/builds/browser.umd.js" } - } + }, + "./dist/*": "./dist/*.js", + "./dist/lite/builds/*": "./dist/lite/builds/*.js" }, "jsdelivr": "./dist/algoliasearch.umd.js", "unpkg": "./dist/algoliasearch.umd.js",