From db376a8b16b9de2f0293dffcd6c203e1f0be5914 Mon Sep 17 00:00:00 2001 From: brandonlenz Date: Fri, 21 Jul 2023 11:14:39 -0400 Subject: [PATCH] Support asdf (add .tool-versions) --- .tool-versions | 1 + README.md | 2 +- docs/contributing.md | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .tool-versions diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000000..27552eba72 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 18.15.0 diff --git a/README.md b/README.md index 03a958e6fd..354688aadd 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ Having issues? See [FAQs](./docs/faqs.md). ### NodeJS -We develop on this library with the version of node defined in `.node-version`. We run the test suite against the major released versions of node that are still in active LTS and not development releases. Specific versions are defined in the workflow: `.github/workflows/build-and-test.yml`. Those are the versions we exxpect to support, if you are using a pre-release or development version of node you may run into unexpected issues. +We develop on this library with the version of node defined in [`.node-version`](.node-version) and [`.tool-versions`](.tool-versions) . We run the test suite against the major released versions of node that are still in active LTS and not development releases. Specific versions are defined in the workflow: `.github/workflows/build-and-test.yml`. Those are the versions we expect to support, if you are using a pre-release or development version of node you may run into unexpected issues. Having issues? See [FAQs](./docs/faqs.md). diff --git a/docs/contributing.md b/docs/contributing.md index 20c6fed1c5..e71c91a7ed 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -25,7 +25,9 @@ We welcome contributions in the form of comments, issues, or pull requests with ## Environment setup -1. Use the node environment manager of your choice, but make sure you have the required version specified in `.node-version`. We recommend using [nodenv](https://github.com/nodenv/nodenv) to manage your node versions, but you can also use [homebrew](https://brew.sh/). More info can be found here: [how to install Node.js](https://nodejs.dev/how-to-install-nodejs) +1. Use the node environment manager of your choice, but make sure you have the required version specified by the project. + - The version required by the project can be found in [`.node-version`](../.node-version) or [`.tool-versions`](../.tool-versions). + - We recommend using [nodenv](https://github.com/nodenv/nodenv) OR [asdf](https://asdf-vm.com/) to manage your node versions, but not both. If you already have a preferred node version manager installed, use it. 2. Use [yarn](https://yarnpkg.com) to manage JS packages.