Files
lodestar/packages/params/package.json
Cayman 6494939cd0 chore: add bun exports to packages (#8448)
**Motivation**

- #7280 

**Description**

- Add `"bun"` export to all packages that points to the _typescript
source_ rather than the transpiled javascript
- Allows for bun to use typescript directly
2025-09-23 12:19:11 +01:00

82 lines
2.0 KiB
JSON

{
"name": "@lodestar/params",
"version": "1.34.1",
"description": "Chain parameters required for lodestar",
"author": "ChainSafe Systems",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/ChainSafe/lodestar/issues"
},
"homepage": "https://github.com/ChainSafe/lodestar#readme",
"type": "module",
"exports": {
".": {
"bun": "./src/index.ts",
"import": "./lib/index.js"
},
"./presets/mainnet": {
"bun": "./src/presets/mainnet.ts",
"import": "./lib/presets/mainnet.js"
},
"./presets/minimal": {
"bun": "./src/presets/minimal.ts",
"import": "./lib/presets/minimal.js"
},
"./presets/gnosis": {
"bun": "./src/presets/gnosis.ts",
"import": "./lib/presets/gnosis.js"
},
"./setPreset": {
"bun": "./src/setPreset.ts",
"import": "./lib/setPreset.js"
}
},
"types": "lib/index.d.ts",
"files": [
"lib/**/*.js",
"lib/**/*.js.map",
"lib/**/*.d.ts",
"*.d.ts",
"*.js"
],
"typesVersions": {
"*": {
"*": [
"*",
"lib/*",
"lib/*/index"
]
}
},
"scripts": {
"clean": "rm -rf lib && rm -f *.tsbuildinfo",
"build": "tsc -p tsconfig.build.json",
"build:release": "yarn clean && yarn build",
"build:watch": "yarn run build --watch",
"check-build": "node -e \"(async function() { await import('./lib/index.js') })()\"",
"check-types": "tsc",
"lint": "biome check src/ test/",
"lint:fix": "yarn run lint --write",
"test": "yarn test:unit",
"test:unit": "vitest run --project unit --project unit-minimal",
"test:browsers": "vitest run --project browser",
"test:e2e": "vitest run --project e2e --project e2e-mainnet",
"check-readme": "typescript-docs-verifier"
},
"repository": {
"type": "git",
"url": "git+https://github.com:ChainSafe/lodestar.git"
},
"keywords": [
"ethereum",
"eth-consensus",
"beacon",
"blockchain"
],
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"axios": "^1.3.4",
"js-yaml": "^4.1.0"
}
}