Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util, devp2p: add dist.browser to package.json #1184

Merged
merged 8 commits into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions packages/block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@
"name": "@ethereumjs/block",
"version": "3.2.0",
"description": "Provides Block serialization and help functions",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MPL-2.0",
"author": "mjbecze (mb@ethdev.com)",
"keywords": [
"ethereum",
"block"
],
"files": [
"dist",
"dist.browser"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
Expand All @@ -25,20 +31,6 @@
"test:browser:build": "tsc && cp test/testdata/*.json test-build/test/testdata",
"test:browser": "npm run test:browser:build && karma start karma.conf.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"keywords": [
"ethereum",
"block"
],
"author": "mjbecze (mb@ethdev.com)",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+block%22"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/block#readme",
"dependencies": {
"@ethereumjs/common": "^2.2.0",
"merkle-patricia-tree": "^4.1.0",
Expand Down Expand Up @@ -71,5 +63,13 @@
"typedoc": "^0.20.34",
"typedoc-plugin-markdown": "^3.6.0",
"typescript": "^3.9.3"
},
"repository": {
"type": "git",
"url": "https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/block#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+block%22"
}
}
30 changes: 15 additions & 15 deletions packages/blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"name": "@ethereumjs/blockchain",
"version": "5.2.1",
"description": "A module to store and interact with blocks",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MPL-2.0",
"keywords": [
"ethereum",
"blockchain"
],
"files": [
"dist",
"dist.browser"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist.browser/index.js",
"scripts": {
"prepublishOnly": "npm run clean && npm run build && npm run test",
Expand All @@ -22,20 +27,7 @@
"lint:fix": "ethereumjs-config-lint-fix",
"test": "tape -r ts-node/register ./test/*.spec.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"keywords": [
"ethereum",
"blockchain"
],
"author": "mjbecze <mjbecze@gmail.com>",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+blockchain%22"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/blockchain#readme",
"dependencies": {
"@ethereumjs/block": "^3.2.0",
"@ethereumjs/common": "^2.2.0",
Expand Down Expand Up @@ -67,5 +59,13 @@
"typedoc": "^0.20.34",
"typedoc-plugin-markdown": "^3.6.0",
"typescript": "^3.9.3"
},
"repository": {
"type": "git",
"url": "https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/blockchain#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+blockchain%22"
}
}
49 changes: 24 additions & 25 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,28 @@
"name": "@ethereumjs/client",
"version": "0.0.6",
"description": "EthereumJS client implementation",
"license": "MPL-2.0",
"author": "Vinay Pulim (v@pulim.com)",
"keywords": [
"ethereum",
"ethereumjs",
"client",
"blockchain",
"light sync",
"full sync"
],
"engines": {
"node": ">=8.0.0"
},
"files": [
"dist"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this intentional to exclude bin here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that folder is not needed anymore since it now only contains the typescript source file. the actual built file we are interested in (that the package.json key for bin: ethereumjs points to) is now at dist/bin/cli.js

],
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"browser": "dist/bundle.js",
"bin": {
"ethereumjs": "dist/bin/cli.js"
},
"files": [
"bin",
"dist"
],
"scripts": {
"build": "npm run build:node && npm run build:browser",
"build:node": "tsc -p ./tsconfig.prod.json",
Expand All @@ -32,27 +44,6 @@
"test:integration": "npm run tape -- 'test/integration/**/*.spec.ts'",
"test:browser": "karma start karma.conf.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-client.git"
},
"keywords": [
"ethereum",
"ethereumjs",
"client",
"blockchain",
"light sync",
"full sync"
],
"engines": {
"node": ">=8.0.0"
},
"author": "Vinay Pulim (v@pulim.com)",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-client/issues"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-client#readme",
"dependencies": {
"@ethereumjs/block": "^3.2.0",
"@ethereumjs/blockchain": "^5.2.1",
Expand Down Expand Up @@ -119,5 +110,13 @@
"typescript": "^3.9.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"repository": {
"type": "git",
"url": "https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/client#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+client%22"
}
}
41 changes: 20 additions & 21 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@
"name": "@ethereumjs/common",
"version": "2.2.0",
"description": "Resources common to all Ethereum implementations",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
"keywords": [
"ethereum",
"ethereumjs",
"constants",
"parameters",
"genesis",
"networks",
"bootstrap"
],
"files": [
"dist",
"dist.browser"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
Expand All @@ -22,25 +32,6 @@
"test": "tape -r ts-node/register ./tests/*.spec.ts",
"docs:build": "typedoc --options typedoc.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"keywords": [
"ethereum",
"ethereumjs",
"constants",
"parameters",
"genesis",
"networks",
"bootstrap"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+common%22"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/common#readme",
"dependencies": {
"crc-32": "^1.2.0",
"ethereumjs-util": "^7.0.10"
Expand All @@ -64,6 +55,14 @@
"typedoc-plugin-markdown": "^3.6.0",
"typescript": "^3.9.3"
},
"repository": {
"type": "git",
"url": "https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/common#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+common%22"
},
"maintainers": [
{
"name": "Holger Drewes",
Expand Down
43 changes: 22 additions & 21 deletions packages/devp2p/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@ethereumjs/devp2p",
"version": "3.0.3",
"description": "A JavaScript implementation of ÐΞVp2p",
"license": "MIT",
"keywords": [
"ethereum",
"p2p",
Expand All @@ -14,30 +15,16 @@
"les",
"les2"
],
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/devp2p#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+devp2p%22"
"engines": {
"node": ">=10.0"
},
"license": "MIT",
"contributors": [
"Alex Beregszaszi <alex@rtfs.hu>",
"Kirill Fomichev <fanatid@ya.ru> (https://github.com/fanatid)",
"Martin Becze <mb@ethdev.com>",
"Holger Drewes <holger.drewes@gmail.com>"
],
"files": [
"dist/**/*.js",
"dist/**/*.d.ts",
"dist/**/*.map"
"dist",
"dist.browser"
],
"main": "dist/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"engines": {
"node": ">=10.0"
},
"types": "dist/index.d.ts",
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
"prepublishOnly": "npm run clean && npm run build && npm run test",
Expand Down Expand Up @@ -98,5 +85,19 @@
"typedoc": "^0.20.34",
"typedoc-plugin-markdown": "^3.6.0",
"typescript": "^3.9.3"
}
},
"repository": {
"type": "git",
"url": "https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/devp2p#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+devp2p%22"
},
"contributors": [
"Alex Beregszaszi <alex@rtfs.hu>",
"Kirill Fomichev <fanatid@ya.ru> (https://github.com/fanatid)",
"Martin Becze <mb@ethdev.com>",
"Holger Drewes <holger.drewes@gmail.com>"
]
}
9 changes: 9 additions & 0 deletions packages/devp2p/tsconfig.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "@ethereumjs/config-typescript/tsconfig.browser.json",
"include": ["src/**/*.ts"],
"compilerOptions": {
"outDir": "./dist.browser",
"types": ["node"],
"typeRoots": ["node_modules/@types"]
}
}
36 changes: 18 additions & 18 deletions packages/ethash/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "@ethereumjs/ethash",
"version": "1.0.0",
"description": "An ethash implementation in JS.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"description": "An ethash implementation in JavaScript",
"license": "MPL-2.0",
"author": "mjbecze <mjbecze@gmail.com>",
"keywords": [
"ethash",
"ethereum",
"POW"
],
"files": [
"dist",
"dist.browser"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"browser": "dist.browser/index.js",
"scripts": {
"build": "ethereumjs-config-ts-build",
Expand All @@ -19,21 +26,6 @@
"coverage": "ethereumjs-config-coverage",
"test": "tape -r ts-node/register test/*.spec.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"keywords": [
"ethash",
"ethereum",
"POW"
],
"author": "mjbecze <mjbecze@gmail.com>",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme",
"dependencies": {
"@types/levelup": "^4.3.0",
"buffer-xor": "^2.0.1",
Expand All @@ -57,5 +49,13 @@
"ts-node": "^8.8.2",
"tslint": "^5.16.0",
"typescript": "^3.9.3"
},
"repository": {
"type": "git",
"url": "https://github.com/ethereumjs/ethereumjs-monorepo.git"
},
"homepage": "https://github.com/ethereumjs/ethereumjs-monorepo/tree/master/packages/ethash#readme",
"bugs": {
"url": "https://github.com/ethereumjs/ethereumjs-monorepo/issues?q=is%3Aissue+label%3A%22package%3A+ethash%22"
}
}
Loading