Skip to content

Commit b27a0c4

Browse files
authored
Merge pull request #553 from nanotaboada/chore/add-envrc
chore(config): add .envrc for automatic nvm version switching
2 parents cff055b + 044ede3 commit b27a0c4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export NVM_DIR="$HOME/.nvm"
2+
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh" && nvm use

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ This project uses football/soccer terminology for release names:
4444

4545
### Added
4646

47+
- `.envrc` for [direnv](https://direnv.net/) to automatically switch to the required Node.js version via `.nvmrc` on directory entry
4748
- `rest/players.rest` HTTP file with health check, POST, GET (all, by ID, by squad number), PUT, and DELETE requests for VS Code REST Client (`humao.rest-client`)
4849
- `humao.rest-client` added to `.vscode/extensions.json` recommended extensions
4950

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ Before you begin, ensure you have the following installed:
206206

207207
- Node.js (see `.nvmrc` for required version)
208208
- npm (comes with Node.js)
209+
- [direnv](https://direnv.net/) (optional, but recommended — auto-loads the correct Node.js version via `.nvmrc` on directory entry)
209210
- Docker and Docker Compose (optional, for containerized setup)
210211

211212
## Quick Start

0 commit comments

Comments
 (0)