Skip to content

Commit

Permalink
Merge pull request #117 from DeterminateSystems/update-nodejs-versions
Browse files Browse the repository at this point in the history
Update Node.js versions
  • Loading branch information
lucperkins authored Jun 16, 2024
2 parents 8a42678 + 2eee173 commit 5b7e079
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fh"
version = "0.1.11"
version = "0.1.12"
authors = ["Determinate Systems <[email protected]>"]
edition = "2021"
license = "Apache 2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/cli/cmd/init/handlers/javascript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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") {
Expand Down

0 comments on commit 5b7e079

Please sign in to comment.