Skip to content

Latest commit

 

History

History
69 lines (32 loc) · 864 Bytes

README.md

File metadata and controls

69 lines (32 loc) · 864 Bytes

💫 changenv

Change environment vars after build

NPM Version NPM Downloads

🎯 Motivation: Dead Components

Sometimes in project, with so specific architecture on build the env vars aren't change.

💻 Tech

Just bash :)

📥 Install

  • Npm
npm i -g changenv
  • Yarn
yarn add changenv

🔨 Usage

changenv <environment> <path_to_folder>

Changenv will looking for .env.<environment> file, read it, and for each var, change every match with process.env.<env_var_name> on <path_to_folder> with their value.

⚡ Examples

changenv production ./build
changenv staging ./lib
changenv development ./dist