From 8dda4ddcf54949046d3691e44c73a5f0476edc4b Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sun, 16 Jun 2024 14:05:03 -0700 Subject: [PATCH 1/2] Update Node.js versions --- src/cli/cmd/init/handlers/javascript.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/cmd/init/handlers/javascript.rs b/src/cli/cmd/init/handlers/javascript.rs index 061b6a6a..f474416a 100644 --- a/src/cli/cmd/init/handlers/javascript.rs +++ b/src/cli/cmd/init/handlers/javascript.rs @@ -2,7 +2,7 @@ use crate::cli::cmd::init::{project::Project, prompt::Prompt}; use super::{Flake, Handler}; -const NODE_VERSIONS: &[&str] = &["18", "16", "14"]; +const NODE_VERSIONS: &[&str] = &["22", "20", "18"]; pub(crate) struct JavaScript; @@ -23,7 +23,7 @@ impl Handler for JavaScript { if Prompt::bool("Is this a Node.js project?") { let version = Prompt::select("Select a version of Node.js", NODE_VERSIONS); - flake.dev_shell_packages.push(format!("nodejs-{version}_x")); + flake.dev_shell_packages.push(format!("nodejs_{version}")); } if project.has_file("pnpm-lock.yaml") && Prompt::for_tool("pnpm") { From 2eee173b693cb767e2a99d5ee08f9b96781d8094 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sun, 16 Jun 2024 14:06:18 -0700 Subject: [PATCH 2/2] Bump patch version to 0.1.12 --- Cargo.lock | 2 +- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e777cfdf..f0453d81 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -581,7 +581,7 @@ dependencies = [ [[package]] name = "fh" -version = "0.1.11" +version = "0.1.12" dependencies = [ "async-trait", "axum", diff --git a/Cargo.toml b/Cargo.toml index 8be00c92..3ce5ca26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fh" -version = "0.1.11" +version = "0.1.12" authors = ["Determinate Systems "] edition = "2021" license = "Apache 2.0"