From 9fd1948e0d0b073ea6183987fd06e256f5a36220 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Tue, 7 Nov 2023 17:25:33 +0800 Subject: [PATCH] feat(api): publish api esnext target (#4231) --- api/CHANGELOG.md | 1 + api/package.json | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/api/CHANGELOG.md b/api/CHANGELOG.md index 4738e1449e..ab1d9b8d4a 100644 --- a/api/CHANGELOG.md +++ b/api/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### :rocket: (Enhancement) * feat(metrics): prototype experimental advice support [#3876](https://github.com/open-telemetry/opentelemetry-js/pull/3876) @legendecas +* feat(api): publish api esnext target [#4231](https://github.com/open-telemetry/opentelemetry-js/pull/4231) @legendecas ## 1.6.0 diff --git a/api/package.json b/api/package.json index 5e8cdf6e4f..87a51daebc 100644 --- a/api/package.json +++ b/api/package.json @@ -4,10 +4,12 @@ "description": "Public API for OpenTelemetry", "main": "build/src/index.js", "module": "build/esm/index.js", + "esnext": "build/esnext/index.js", "types": "build/src/index.d.ts", "browser": { "./src/platform/index.ts": "./src/platform/browser/index.ts", "./build/esm/platform/index.js": "./build/esm/platform/browser/index.js", + "./build/esnext/platform/index.js": "./build/esnext/platform/browser/index.js", "./build/src/platform/index.js": "./build/src/platform/browser/index.js" }, "repository": "open-telemetry/opentelemetry-js", @@ -51,6 +53,9 @@ "build/esm/**/*.js", "build/esm/**/*.js.map", "build/esm/**/*.d.ts", + "build/esnext/**/*.js", + "build/esnext/**/*.js.map", + "build/esnext/**/*.d.ts", "build/src/**/*.js", "build/src/**/*.js.map", "build/src/**/*.d.ts",