Skip to content

Commit

Permalink
fix: add utils build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aon committed Jun 5, 2024
1 parent 3e9f40d commit ad53750
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/zk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ check_subdirectory
check_yarn_version
if [ -z "$1" ]; then
cd $ZKSYNC_HOME
run_retried yarn install --frozen-lockfile && yarn zk build
run_retried yarn install --frozen-lockfile && yarn utils build && yarn zk build
else
# can't start this with yarn since it has quirks with `--` as an argument
node -- $ZKSYNC_HOME/infrastructure/zk/build/index.js "$@"
Expand Down
1 change: 1 addition & 0 deletions etc/utils/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
3 changes: 2 additions & 1 deletion etc/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "utils",
"version": "0.1.0",
"main": "src/index.ts",
"license": "MIT",
"main": "build/index.js",
"types": "build/index.d.ts",
"scripts": {
"build": "tsc"
},
Expand Down
15 changes: 15 additions & 0 deletions etc/utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es2019",
"module": "commonjs",
"outDir": "build",
"strict": true,
"esModuleInterop": true,
"noEmitOnError": true,
"skipLibCheck": true,
"declaration": true
},
"files": [
"src/index.ts"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fn build_repository(shell: &Shell, ecosystem_config: &EcosystemConfig) -> anyhow
let spinner = Spinner::new(MSG_INTEGRATION_TESTS_BUILDING_DEPENDENCIES);

Cmd::new(cmd!(shell, "yarn install --frozen-lockfile")).run()?;
Cmd::new(cmd!(shell, "yarn utils build")).run()?;

spinner.finish();
Ok(())
Expand Down

0 comments on commit ad53750

Please sign in to comment.