@ngrok/gen-x
Generate package.json#exports from src
Installation
Install @ngrok/gen-x to your devDependencies with your preferred package manager:
| npm | npm install -DE @ngrok/gen-x |
| yarn | yarn add -DE @ngrok/gen-x |
| pnpm | pnpm add -DE @ngrok/gen-x |
| bun | bun add -DE @ngrok/gen-x |
Development
Prerequisites required:
We use direnv to assist you with setting up all of the required tooling.
Prefer to install and manage the tooling yourself?
- Install nvm or your node version manager of choice.
- Ensure that
node 20 is installed. With nvm, run nvm install.
- Enable
pnpm with corepack: corepack enable pnpm
- Install
pnpm with corepack: corepack install
- Install project dependencies with
pnpm: pnpm install
First, install direnv:
| macOS | brew install direnv |
| ubuntu | sudo apt install direnv |
For all other OSes, see the direnv installation guide.
Don't forget to set up direnv integration with your shell.
Next, clone the repo and move into the directory:
git clone https://github.com/ngrok-oss/gen-x.git
cd gen-x
Next, run:
direnv allow
This will install nvm (if not already installed) as well as set the correct node and pnpm versions for you.
It will also run pnpm install at the end to install all node_modules.