Skip to content

Commit db550ed

Browse files
tmcwdrewda
andauthored
let PNPM version float & specify NodeJS version in .node_version (placemark#239)
Co-authored-by: Drew Dara-Abrams <drew@interline.io>
1 parent b7b6d24 commit db550ed

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24.5.0

mise.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
[tools]
2-
node = "24.5.0"
3-
pnpm = "10.13.1"
2+
# Node.js version is specified in .node-version (read by mise, fnm, etc.)
3+
# pnpm version floats >= 10.0.0 - managed via package.json engines field
4+
5+
# Based on https://mise.jdx.dev/mise-cookbook/nodejs.html#example-with-pnpm
6+
# Mise installs node based on .node-version but needs this hook to install
7+
# pnpm
8+
[hooks]
9+
# Enabling corepack will install the `pnpm` package manager specified in your package.json
10+
# alternatively, you can also install `pnpm` with mise
11+
postinstall = 'npx corepack enable'
12+
13+
[settings]
14+
# This must be enabled to make the hooks work
15+
experimental = true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@
153153
},
154154
"engines": {
155155
"node": ">=22.19.0",
156-
"pnpm": "10.13.1"
156+
"pnpm": ">=10.0.0"
157157
}
158158
}

0 commit comments

Comments
 (0)