From 9445724e72dc6284d68f40e7444149f97960aaf9 Mon Sep 17 00:00:00 2001 From: kibagateaux Date: Wed, 29 Jan 2025 17:36:06 +0900 Subject: [PATCH] make circuit compiling locally on commit since its a rust package and cant be run in ci --- .gitignore | 3 --- .husky/pre-commit | 1 + package.json | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index c844a79..a514905 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,6 @@ # dependencies node_modules/ -# build artifacts -src/circuits/*_js/ - # Expo .expo/ dist/ diff --git a/.husky/pre-commit b/.husky/pre-commit index cf0c46b..0930f06 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,3 +2,4 @@ . "$(dirname -- "$0")/_/husky.sh" npx --no-install lint-staged +npm run compile:zk diff --git a/package.json b/package.json index 44d4af3..6fb66cf 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,7 @@ "compile:zk": "circom ./src/circuits/circle.circom --verbose --wasm --json -l node_modules -o ./src/circuits/; mv ./src/circuits/circle_constraints.json ./src/circuits/circle_js/ ", "postinstall": "patch-package && rn-nodeify --install all --hack", "android": "expo run:android --variant developmentDebug -d", - "prebuild": "npm run compile:zk", - "build:web": "npm run prebuild; expo export -p web", + "build:web": "expo export -p web", "build:android": "eas build -p android", "start": "APP_VARIANT=development npx expo start --dev-client --android -d", "install:android": "source .env && npx eas build --local --platform android -e $APP_VARIANT --output app.apk; adb install ./app.apk",