From 555eac9e7c477a35440b1c09cb1366b2b8bfee7b Mon Sep 17 00:00:00 2001 From: Arthur Abeilice Date: Mon, 4 May 2026 22:46:34 -0300 Subject: [PATCH] fix(scripts): contracts:setup preserves existing .env, handles macOS cp --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1d24b03..88bb64d 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "lint:fix": "eslint . --fix", "format": "prettier --write \"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", "wagmi:gen": "wagmi generate" },