diff --git a/packages/api/package.json b/packages/api/package.json index f7fe7656cf..148bf21a77 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -16,47 +16,45 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./server": { "bun": "./src/server/index.ts", + "types": "./lib/server/index.d.ts", "import": "./lib/server/index.js" }, "./beacon": { "bun": "./src/beacon/index.ts", + "types": "./lib/beacon/index.d.ts", "import": "./lib/beacon/index.js" }, "./beacon/server": { "bun": "./src/beacon/server/index.ts", + "types": "./lib/beacon/server/index.d.ts", "import": "./lib/beacon/server/index.js" }, "./builder": { "bun": "./src/builder/index.ts", + "types": "./lib/builder/index.d.ts", "import": "./lib/builder/index.js" }, "./builder/server": { "bun": "./src/builder/server/index.ts", + "types": "./lib/builder/server/index.d.ts", "import": "./lib/builder/server/index.js" }, "./keymanager": { "bun": "./src/keymanager/index.ts", + "types": "./lib/keymanager/index.d.ts", "import": "./lib/keymanager/index.js" }, "./keymanager/server": { "bun": "./src/keymanager/server/index.ts", + "types": "./lib/keymanager/server/index.d.ts", "import": "./lib/keymanager/server/index.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "./lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/beacon-node/package.json b/packages/beacon-node/package.json index 84e54d732c..0233e33be5 100644 --- a/packages/beacon-node/package.json +++ b/packages/beacon-node/package.json @@ -16,50 +16,62 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./api": { "bun": "./src/api/index.ts", + "types": "./lib/api/index.d.ts", "import": "./lib/api/index.js" }, "./chain": { "bun": "./src/chain/index.ts", + "types": "./lib/chain/index.d.ts", "import": "./lib/chain/index.js" }, "./constants": { "bun": "./src/constants/index.ts", + "types": "./lib/constants/index.d.ts", "import": "./lib/constants/index.js" }, "./db": { "bun": "./src/db/index.ts", + "types": "./lib/db/index.d.ts", "import": "./lib/db/index.js" }, "./eth1": { "bun": "./src/eth1/index.ts", + "types": "./lib/eth1/index.d.ts", "import": "./lib/eth1/index.js" }, "./metrics": { "bun": "./src/metrics/index.ts", + "types": "./lib/metrics/index.d.ts", "import": "./lib/metrics/index.js" }, "./monitoring": { "bun": "./src/monitoring/index.ts", + "types": "./lib/monitoring/index.d.ts", "import": "./lib/monitoring/index.js" }, "./network": { "bun": "./src/network/index.ts", + "types": "./lib/network/index.d.ts", "import": "./lib/network/index.js" }, "./node": { "bun": "./src/node/index.ts", + "types": "./lib/node/index.d.ts", "import": "./lib/node/index.js" }, "./sync": { "bun": "./src/sync/index.ts", + "types": "./lib/sync/index.d.ts", "import": "./lib/sync/index.js" }, "./util": { "bun": "./src/util/index.ts", + "types": "./lib/util/index.d.ts", "import": "./lib/util/index.js" } }, @@ -73,16 +85,6 @@ "default": "datastore-level" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "./lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/cli/package.json b/packages/cli/package.json index 74bfb4ddbf..a614b841f6 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -12,6 +12,7 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" } }, diff --git a/packages/config/package.json b/packages/config/package.json index 70c27c544d..22b4cbd174 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -12,31 +12,25 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./default": { "bun": "./src/default.ts", + "types": "./lib/default.d.ts", "import": "./lib/default.js" }, "./networks": { "bun": "./src/networks.ts", + "types": "./lib/networks.d.ts", "import": "./lib/networks.js" }, "./configs": { "bun": "./src/configs.ts", + "types": "./lib/configs.d.ts", "import": "./lib/configs.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/db/package.json b/packages/db/package.json index afc74fc34d..10d3769df6 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -15,6 +15,7 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./controller/level": { @@ -28,7 +29,6 @@ "import": "./src/controller/level.js" } }, - "types": "./lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/flare/package.json b/packages/flare/package.json index 9c0676ee5e..9cb04c31a2 100644 --- a/packages/flare/package.json +++ b/packages/flare/package.json @@ -12,19 +12,10 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/fork-choice/package.json b/packages/fork-choice/package.json index 89016cc77f..79fc7b836e 100644 --- a/packages/fork-choice/package.json +++ b/packages/fork-choice/package.json @@ -16,10 +16,10 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" } }, - "types": "./lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/light-client/package.json b/packages/light-client/package.json index 3bdd6d9460..6bdb381425 100644 --- a/packages/light-client/package.json +++ b/packages/light-client/package.json @@ -16,35 +16,30 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./utils": { "bun": "./src/utils/index.ts", + "types": "./lib/utils/index.d.ts", "import": "./lib/utils/index.js" }, "./validation": { "bun": "./src/validation.ts", + "types": "./lib/validation.d.ts", "import": "./lib/validation.js" }, "./spec": { "bun": "./src/spec/index.ts", + "types": "./lib/spec/index.d.ts", "import": "./lib/spec/index.js" }, "./transport": { "bun": "./src/transport/index.ts", + "types": "./lib/transport/index.d.ts", "import": "./lib/transport/index.js" } }, - "types": "./lib/index.d.ts", - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, "files": [ "src", "lib", diff --git a/packages/logger/package.json b/packages/logger/package.json index 5476937951..a13cb007a7 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -16,34 +16,30 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./browser": { "bun": "./src/browser.ts", + "types": "./lib/browser.d.ts", "import": "./lib/browser.js" }, "./env": { "bun": "./src/env.ts", + "types": "./lib/env.d.ts", "import": "./lib/env.js" }, "./node": { "bun": "./src/node.ts", + "types": "./lib/node.d.ts", "import": "./lib/node.js" }, "./empty": { "bun": "./src/empty.ts", + "types": "./lib/empty.d.ts", "import": "./lib/empty.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, "files": [ "src", "lib", diff --git a/packages/params/package.json b/packages/params/package.json index 049b4517d2..a3e1d30c17 100644 --- a/packages/params/package.json +++ b/packages/params/package.json @@ -12,40 +12,35 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./presets/mainnet": { "bun": "./src/presets/mainnet.ts", + "types": "./lib/presets/mainnet.d.ts", "import": "./lib/presets/mainnet.js" }, "./presets/minimal": { "bun": "./src/presets/minimal.ts", + "types": "./lib/presets/minimal.d.ts", "import": "./lib/presets/minimal.js" }, "./presets/gnosis": { "bun": "./src/presets/gnosis.ts", + "types": "./lib/presets/gnosis.d.ts", "import": "./lib/presets/gnosis.js" }, "./setPreset": { "bun": "./src/setPreset.ts", + "types": "./lib/setPreset.d.ts", "import": "./lib/setPreset.js" } }, - "types": "lib/index.d.ts", "files": [ "src", "lib", "!**/*.tsbuildinfo" ], - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, "scripts": { "clean": "rm -rf lib && rm -f *.tsbuildinfo", "build": "tsc -p tsconfig.build.json", diff --git a/packages/prover/package.json b/packages/prover/package.json index 7f18f531a4..d0aaf60802 100644 --- a/packages/prover/package.json +++ b/packages/prover/package.json @@ -16,26 +16,18 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./browser": { "bun": "./src/browser/index.ts", + "types": "./lib/browser/index.d.ts", "import": "./lib/browser/index.js" } }, "bin": { "lodestar-prover": "lib/cli/index.js" }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "./lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/reqresp/package.json b/packages/reqresp/package.json index ab6c487c0d..b1e197a87a 100644 --- a/packages/reqresp/package.json +++ b/packages/reqresp/package.json @@ -16,23 +16,15 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./utils": { "bun": "./src/utils/index.ts", + "types": "./lib/utils/index.d.ts", "import": "./lib/utils/index.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "./lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/spec-test-util/package.json b/packages/spec-test-util/package.json index 5da8b25455..6276e2bd75 100644 --- a/packages/spec-test-util/package.json +++ b/packages/spec-test-util/package.json @@ -12,23 +12,15 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./downloadTests": { "bun": "./src/downloadTests.ts", + "types": "./lib/downloadTests.d.ts", "import": "./lib/downloadTests.js" } }, - "types": "lib/index.d.ts", - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, "files": [ "src", "lib", diff --git a/packages/state-transition/package.json b/packages/state-transition/package.json index 46b74e8516..192a5a242a 100644 --- a/packages/state-transition/package.json +++ b/packages/state-transition/package.json @@ -16,30 +16,25 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./block": { "bun": "./src/block/index.ts", + "types": "./lib/block/index.d.ts", "import": "./lib/block/index.js" }, "./epoch": { "bun": "./src/epoch/index.ts", + "types": "./lib/epoch/index.d.ts", "import": "./lib/epoch/index.js" }, "./slot": { "bun": "./src/slot/index.ts", + "types": "./lib/slot/index.d.ts", "import": "./lib/slot/index.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, "files": [ "src", "lib", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 06ea519df9..2b8df7184f 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -13,23 +13,15 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./doubles": { "bun": "./src/doubles.ts", + "types": "./lib/doubles.d.ts", "import": "./lib/doubles.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, - "types": "lib/index.d.ts", "files": [ "src", "lib", diff --git a/packages/types/package.json b/packages/types/package.json index 4ab77ccb43..ff2754269d 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -16,46 +16,45 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" }, "./altair": { "bun": "./src/altair/index.ts", + "types": "./lib/altair/index.d.ts", "import": "./lib/altair/index.js" }, "./capella": { "bun": "./src/capella/index.ts", + "types": "./lib/capella/index.d.ts", "import": "./lib/capella/index.js" }, "./bellatrix": { "bun": "./src/bellatrix/index.ts", + "types": "./lib/bellatrix/index.d.ts", "import": "./lib/bellatrix/index.js" }, "./deneb": { "bun": "./src/deneb/index.ts", + "types": "./lib/deneb/index.d.ts", "import": "./lib/deneb/index.js" }, "./electra": { "bun": "./src/electra/index.ts", + "types": "./lib/electra/index.d.ts", "import": "./lib/electra/index.js" }, "./fulu": { "bun": "./src/fulu/index.ts", + "types": "./lib/fulu/index.d.ts", "import": "./lib/fulu/index.js" }, "./phase0": { "bun": "./src/phase0/index.ts", + "types": "./lib/phase0/index.d.ts", "import": "./lib/phase0/index.js" } }, - "typesVersions": { - "*": { - "*": [ - "*", - "lib/*", - "lib/*/index" - ] - } - }, "files": [ "src", "lib", diff --git a/packages/utils/package.json b/packages/utils/package.json index ff144dc8d1..ca600a1c70 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -16,6 +16,7 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" } }, diff --git a/packages/validator/package.json b/packages/validator/package.json index 3b0d832e21..a23ff80f07 100644 --- a/packages/validator/package.json +++ b/packages/validator/package.json @@ -12,10 +12,10 @@ "exports": { ".": { "bun": "./src/index.ts", + "types": "./lib/index.d.ts", "import": "./lib/index.js" } }, - "types": "./lib/index.d.ts", "files": [ "src", "lib",