Environment Loading Protocol
Rule
Before any build/run/deploy command, check for env.sh:
- •If present: Source it, then run the command.
- •Syntax:
. ./env.sh && <command>
- •Syntax:
- •If absent: Run the command normally.
Applies To
- •Node:
pnpm,bunscripts (dev,build,start) - •Compilers:
zig,go,cargo,dotnet - •Task runners:
make,just,rake - •Infra:
docker,docker-compose,terraform,kubectl
Example
bash
. ./env.sh && pnpm build