From 889fee2316965c69b709f2b9a94f52e58a846b23 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Tue, 27 Aug 2024 13:03:50 -0500 Subject: [PATCH] Revert "Add bun export" (#2354) This reverts commit 83b32f7ef4a1f7dd9d83a41e3f9e67b8f639382d. --- index.ts | 53 ---------------------------------------------------- package.json | 3 +-- 2 files changed, 1 insertion(+), 55 deletions(-) delete mode 100644 index.ts diff --git a/index.ts b/index.ts deleted file mode 100644 index 0dac730c4..000000000 --- a/index.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed to Elasticsearch B.V. under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch B.V. licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import { - Diagnostic, - Transport, - WeightedConnectionPool, - ClusterConnectionPool, - BaseConnectionPool, - CloudConnectionPool, - BaseConnection, - HttpConnection, - UndiciConnection, - Serializer, - errors, - events -} from '@elastic/transport' - -import Client from './src/client' -import SniffingTransport from './src/sniffingTransport' - -export { - Client, - SniffingTransport, - Diagnostic, - Transport, - WeightedConnectionPool, - ClusterConnectionPool, - BaseConnectionPool, - CloudConnectionPool, - BaseConnection, - HttpConnection, - UndiciConnection, - Serializer, - errors, - events -} diff --git a/package.json b/package.json index 413429b4f..520ed4b04 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,7 @@ "main": "./index.js", "types": "index.d.ts", "exports": { - "require": "./index.js", - "bun": "./index.ts" + "require": "./index.js" }, "scripts": { "test": "npm run build && npm run lint && tap test/unit/{*,**/*}.test.ts",