This change allows us to have a .env file in the root of the project with all common environment variables.
However, it also allows for local .env files in each package (it will override the variable from the root .env file if present.
For reference, there are usually 5 calls to dotenv.config() within the execution of a script:
From the package's hardhat.config.js => arb-shared-dependencies/index.js => arb-shared-dependencies/hardhat.config.js => dotenv.config()
From the package's hardhat.config.js => arb-shared-dependencies/index.js => dotenv.config({path})
Again, from the package's hardhat.config.js => arb-shared-dependencies/index.js => arb-shared-dependencies/hardhat.config.js => dotenv.config()
Again, from the package's hardhat.config.js => arb-shared-dependencies/index.js => dotenv.config({path})
This change allows us to have a .env file in the root of the project with all common environment variables. However, it also allows for local .env files in each package (it will override the variable from the root .env file if present.
For reference, there are usually 5 calls to dotenv.config() within the execution of a script: