chore(nodejs): upgrade to 22.2.0
This commit is contained in:
parent
6efd659e73
commit
a7562aeebe
10
.envrc
10
.envrc
@ -7,6 +7,16 @@ export GIT_AUTHOR_EMAIL="michel@none"
|
|||||||
export GIT_COMMITTER_NAME="Michel"
|
export GIT_COMMITTER_NAME="Michel"
|
||||||
export GIT_COMMITTER_EMAIL="michel@none"
|
export GIT_COMMITTER_EMAIL="michel@none"
|
||||||
|
|
||||||
|
# Node.JS
|
||||||
|
lua_node=$(grep -o "nodejs/[.0-9]\\+" init.lua)
|
||||||
|
lua_node=${lua_node#nodejs/}
|
||||||
|
|
||||||
|
asdf_node=$(asdf current nodejs | grep -o "[.0-9]\\{3,\\}")
|
||||||
|
|
||||||
|
if [ "${lua_node}" != "${asdf_node}" ]; then
|
||||||
|
log_error "init.lua expects node.js ${lua_node} but asdf provides ${asdf_node}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Python virtual env
|
# Python virtual env
|
||||||
layout python3
|
layout python3
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
direnv 2.34.0
|
direnv 2.34.0
|
||||||
# NOTE: Path to nodejs is hardcoded in init.lua
|
# NOTE: Path to nodejs is hardcoded in init.lua
|
||||||
nodejs 21.6.2
|
nodejs 22.2.0
|
||||||
# TODO: Don't use version matching system
|
# TODO: Don't use version matching system
|
||||||
python 3.12.3
|
python 3.12.3
|
||||||
|
2
init.lua
2
init.lua
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
-- Use Node from ASDF
|
-- Use Node from ASDF
|
||||||
-- TODO: Use neovim config
|
-- TODO: Use neovim config
|
||||||
vim.env.PATH = vim.env.HOME .. "/.asdf/installs/nodejs/21.6.2/bin/" .. ":" .. vim.env.PATH
|
vim.env.PATH = vim.env.HOME .. "/.asdf/installs/nodejs/22.2.0/bin/" .. ":" .. vim.env.PATH
|
||||||
|
|
||||||
-- Use Python from neoovim "config" folder
|
-- Use Python from neoovim "config" folder
|
||||||
local python_root = vim.fn.glob(vim.fn.stdpath("config") .. "/.direnv/python*", true, true)[1]
|
local python_root = vim.fn.glob(vim.fn.stdpath("config") .. "/.direnv/python*", true, true)[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user