fix(scripts): contracts:setup preserves existing .env, handles macOS cp

This commit is contained in:
2026-05-04 22:46:34 -03:00
committed by hueso
parent 10569db3b1
commit 555eac9e7c

View File

@@ -13,7 +13,7 @@
"lint:fix": "eslint . --fix", "lint:fix": "eslint . --fix",
"format": "prettier --write \"src/**/*.{ts,vue,json}\"", "format": "prettier --write \"src/**/*.{ts,vue,json}\"",
"format:check": "prettier --check \"src/**/*.{ts,vue,json}\"", "format:check": "prettier --check \"src/**/*.{ts,vue,json}\"",
"contracts:setup": "pushd p2pix-smart-contracts && bun install && cp -n .env.example .env || true && popd", "contracts:setup": "(test -f p2pix-smart-contracts/.env || cp p2pix-smart-contracts/.env.example p2pix-smart-contracts/.env) && pushd p2pix-smart-contracts && bun install && popd",
"prewagmi:gen": "bun run contracts:setup", "prewagmi:gen": "bun run contracts:setup",
"wagmi:gen": "wagmi generate" "wagmi:gen": "wagmi generate"
}, },