Skip to content

Commit 4d5e45b

Browse files
committed
fix ci
1 parent a9bcb88 commit 4d5e45b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if [ -d "$DIR" ]; then
99
echo "Parser SOURCE_COMMIT"
1010
echo "SOURCE_COMMIT: $SOURCE_COMMIT"
1111
sleep 1
12+
rm -rf build/
1213
npx peggy --cache -o ./build/parser.js ./solidity.pegjs
1314
npx peggy -o ./build/imports_parser.js ./imports.pegjs
1415
echo "Geneated parser successfully"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
"prettier": "^2.3.2"
2828
},
2929
"scripts": {
30-
"build": "sh entrypoint.sh",
31-
"ci": "rm -rf build/ && sh entrypoint.sh && npx nyc --reporter=lcov npm test && npx codecov",
30+
"build": "npx peggy --cache -o ./build/parser.js ./solidity.pegjs",
31+
"compile": " npx peggy -o ./build/imports_parser.js ./imports.pegjs",
32+
"ci": "./entrypoint.sh && npx nyc --reporter=lcov npm test && npx codecov",
3233
"lint": "npx eslint .",
3334
"run": "npm run build",
3435
"test": "npx mocha --timeout 5000 --reporter spec"

0 commit comments

Comments
 (0)