react-native-config-codegen
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

React Native Config TypeScript declaration generator

Small CLI tool to generate a env.d.ts file for your react-native-config variables.

Installation

Install the package :

yarn add --dev react-native-config-codegen

Usage

Add a script in your package.json file :

{
  "scripts": {
    "codegen-env": "react-native-config-codegen .env"
  }
}

Multiple config files

If you have multiple .env files for different environments like .env.dev, .env.staging, .env.prod, you just have to pass each of them to the script :

{
  "scripts": {
    "codegen-env": "react-native-config-codegen .env.dev .env.staging .env.prod"
  }
}

Package Sidebar

Install

npm i react-native-config-codegen

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.95 kB

Total Files

6

Last publish

Collaborators

  • jackstudd