Skip to content

Commit e3c5bba

Browse files
committed
build trie benchmarks with root lerna cmd, normalize ethereumjs-config scripts
1 parent 04a7318 commit e3c5bba

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/trie-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ jobs:
8080
if: steps.cache.outputs.cache-hit != 'true'
8181
working-directory: ${{github.workspace}}
8282

83+
# Builds current package and the ones it depends from.
84+
- run: npm run build:trie
85+
working-directory: ${{github.workspace}}
86+
8387
- run: npm run benchmarks | tee output.txt
8488
working-directory: ${{ env.cwd }}
8589

packages/trie/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
],
1111
"browser": "dist.browser/index.js",
1212
"scripts": {
13-
"benchmarks": "npm run build && node -r ts-node/register --max-old-space-size=8024 benchmarks",
14-
"profiling": "npm run build && tsc --target ES5 benchmarks/random.ts && 0x benchmarks/random.js",
15-
"build": "tsc -p tsconfig.prod.json && tsc -p tsconfig.browser.json",
13+
"benchmarks": "node -r ts-node/register --max-old-space-size=8024 benchmarks",
14+
"profiling": "tsc --target ES5 benchmarks/random.ts && 0x benchmarks/random.js",
1615
"prepublishOnly": "npm run build && npm run test",
17-
"coverage": "nyc --reporter=lcov npm run test:node",
16+
"build": "ethereumjs-config-ts-build",
17+
"coverage": "ethereumjs-config-coverage",
1818
"docs:build": "typedoc",
1919
"lint": "ethereumjs-config-lint",
2020
"lint:fix": "ethereumjs-config-lint-fix",
2121
"tsc": "ethereumjs-config-tsc",
2222
"test": "npm run test:node && npm run test:browser",
23-
"test:browser": "npm run build && karma start karma.conf.js",
23+
"test:browser": "karma start karma.conf.js",
2424
"test:node": "tape -r ts-node/register test/*.ts"
2525
},
2626
"author": {

0 commit comments

Comments
 (0)