Open jeremymeng opened 5 months ago
@jeremymeng does that mean we could replace two lines with only one in sample gen?
From
import * as dotenv from "dotenv";
dotenv.config();
To
import 'dotenv/config';
Do we need to upgrade the dotenv version before that change?
@MaryGao yes, current version (^16.0.0) in the repo should be good. An example:
as it is suggested in
dotenv
's documentation. https://github.com/motdotla/dotenv/blob/8ab33066f90a20445d3c41e4fafba6c929c5e1a5/README.md#%EF%B8%8F-usageIt would be nice to be consistent across the repository.