diff --git a/package.json b/package.json index decb70fc..b02148c8 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,11 @@ "license": "Apache-2.0", "sideEffects": false, "scripts": { - "generate-env": "node scripts/generateEnv.js", - "postinstall": "(cp -n .env.example .env) || echo already exists && pnpm run generate-env", + "generate-env": "(cp .env.example .env) || echo .env already exists && node scripts/generateEnv.js", + "postinstall": "pnpm generate-env", + "prebuild": "pnpm generate-env", + "prebuild:clean": "pnpm generate-env", + "predev": "pnpm generate-env", "build": "turbo run build --filter={packages/*}", "build:clean": "turbo run build:clean", "dev": "turbo run dev --filter={packages/*}",