diff --git a/.github/.cache_version b/.github/.cache_version index 51ce6b0e45..9a0bf0d75f 100644 --- a/.github/.cache_version +++ b/.github/.cache_version @@ -1 +1 @@ -0.0.98 +0.0.99 diff --git a/Dockerfile b/Dockerfile index 6ea1d6211c..e660de606a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,9 @@ ENV DOCKER=true # use bash for subsequent commands SHELL ["/bin/bash", "--login", "-c"] -# Global +# Global (python3 is needed by npm to build parcel on some platforms) RUN apt-get update && apt-get install -y --no-install-recommends \ - curl zip unzip git openssh-server \ + curl zip unzip git openssh-server python3 \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* diff --git a/clients/algoliasearch-client-javascript/bundlesize.config.json b/clients/algoliasearch-client-javascript/bundlesize.config.json index 81864bc344..d20b791b1a 100644 --- a/clients/algoliasearch-client-javascript/bundlesize.config.json +++ b/clients/algoliasearch-client-javascript/bundlesize.config.json @@ -2,7 +2,7 @@ "files": [ { "path": "packages/algoliasearch/dist/algoliasearch.umd.js", - "maxSize": "8.55KB" + "maxSize": "8.10KB" }, { "path": "packages/algoliasearch/dist/lite/lite.umd.js", @@ -34,7 +34,7 @@ }, { "path": "packages/ingestion/dist/ingestion.umd.js", - "maxSize": "4.95KB" + "maxSize": "5.05KB" }, { "path": "packages/monitoring/dist/monitoring.umd.js", diff --git a/playground/javascript/node/package.json b/playground/javascript/node/package.json index a81459d859..6723ebec84 100644 --- a/playground/javascript/node/package.json +++ b/playground/javascript/node/package.json @@ -2,6 +2,7 @@ "name": "javascript-playground", "version": "0.0.0", "private": true, + "type": "module", "scripts": { "start:algoliasearch": "ts-node algoliasearch.ts", "start:abtesting": "ts-node abtesting.ts", diff --git a/playground/javascript/node/tsconfig.json b/playground/javascript/node/tsconfig.json index ff404088c6..fad04f171a 100644 --- a/playground/javascript/node/tsconfig.json +++ b/playground/javascript/node/tsconfig.json @@ -1,7 +1,14 @@ { "extends": "../../../config/base.tsconfig.json", "compilerOptions": { + "module": "esnext", + "target": "esnext", "outDir": "dist" }, - "include": ["*.ts"] + "ts-node": { + "esm": true + }, + "include": [ + "*.ts" + ] } diff --git a/templates/javascript/clients/index.d.mustache b/templates/javascript/clients/index.d.mustache index 8b0a7c887a..09713eff57 100644 --- a/templates/javascript/clients/index.d.mustache +++ b/templates/javascript/clients/index.d.mustache @@ -1,2 +1,2 @@ // eslint-disable-next-line import/no-unresolved -export * from './dist/builds/node'; +export * from './dist/{{#isAlgoliasearchClient}}algoliasearch/{{/isAlgoliasearchClient}}builds/node'; diff --git a/templates/javascript/clients/tsconfig.mustache b/templates/javascript/clients/tsconfig.mustache index 385e633f2d..81880e51e2 100644 --- a/templates/javascript/clients/tsconfig.mustache +++ b/templates/javascript/clients/tsconfig.mustache @@ -6,12 +6,6 @@ {{/isAlgoliasearchClient}} "outDir": "dist" }, - {{#isAlgoliasearchClient}} - "include": ["*.ts"], - "exclude": ["dist", "node_modules", "__tests__", "lite"] - {{/isAlgoliasearchClient}} - {{^isAlgoliasearchClient}} "include": ["{{apiPackage}}", "model", "builds"], "exclude": ["dist", "node_modules"] - {{/isAlgoliasearchClient}} }