Skip to content

Commit

Permalink
chore(workflow): fix script command to bundlesize (elastic#657)
Browse files Browse the repository at this point in the history
* chore(workflow): fix script command to bundlesize

* use build and enable stream

fix build
  • Loading branch information
vigneshshanmugam authored Feb 27, 2020
1 parent 7ba6a7e commit 12d66b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/bundle-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ jobs:
- uses: preactjs/compressed-size-action@v1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
build-script: "npx lerna run build:module"
pattern: "{packages/rum/dist/bundles/*.js}"
3 changes: 3 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"conventionalCommits": true,
"message": "chore(release): publish",
"gitRemote": "upstream"
},
"run": {
"stream": true
}
},
"ignoreChanges": [
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"lint": "run-p --silent lint:*",
"lint:js": "eslint . --ext .js,.jsx,.ts",
"lint:license": "node scripts/license-checker",
"test": "lerna run build && lerna run test --stream --scope=$SCOPE --no-prefix",
"bundlesize": "lerna run build:module && lerna run bundlesize --stream",
"test": "npm run build && lerna run test --scope=$SCOPE --no-prefix",
"build": "lerna run build",
"bundlesize": "lerna run build:module && lerna run bundlesize",
"serve": "node ./dev-utils/run-script.js startTestServers",
"coverage": "lerna run build:module && lerna run karma:coverage --stream",
"coverage": "lerna run build:module && lerna run karma:coverage",
"bench:dev": "lerna run build:module && node ./scripts/benchmarks.js",
"clean": "npx lerna exec -- rm -rf dist/"
},
Expand Down

0 comments on commit 12d66b9

Please sign in to comment.