From 24f569fb5d26b8733061ab03a1684912b50175b0 Mon Sep 17 00:00:00 2001 From: Elena Tanasoiu Date: Wed, 1 Jun 2022 12:27:59 +0100 Subject: [PATCH] Use the same Node version as VSCode As recommended here [1], we want to stay in sync with the current node version shipped with VSCode (16.13.0) [2]. For this we can add a `.nvmrc` file to alert nvm to switch to the preferred version automatically. It will also help prevent builds from failing when setting up the project for the first time, as building the extension currently fails in Node v18. [3] [1]: https://github.com/github/vscode-codeql/pull/1369#issuecomment-1142418037 [2]: https://github.com/microsoft/vscode/blob/32d40cf44e893e87ac33ac4f08de1e5f7fe077fc/remote/.yarnrc#L2 [3]: https://github.com/github/vscode-codeql/issues/1373 --- extensions/ql-vscode/.nvmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 extensions/ql-vscode/.nvmrc diff --git a/extensions/ql-vscode/.nvmrc b/extensions/ql-vscode/.nvmrc new file mode 100644 index 00000000000..ff650592a1e --- /dev/null +++ b/extensions/ql-vscode/.nvmrc @@ -0,0 +1 @@ +v16.13.0