Skip to content

Commit 3e7157e

Browse files
authored
Update node example to use the prebuilt binary (#1362)
## Summary Unfortunately I can't tell if the version for `nodePackages.pnpm` is prebuilt or not. Once we have that information in https://nixhub.io I will update the examples again. ## How was it tested? devbox install
1 parent 1052c4e commit 3e7157e

File tree

6 files changed

+31
-15
lines changed

6 files changed

+31
-15
lines changed

examples/development/nodejs/nodejs-pnpm/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packages": [
33
"nodejs@18",
4-
"nodePackages.pnpm@latest"
4+
"nodePackages.pnpm@8.6.0"
55
],
66
"shell": {
77
"init_hook": [
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"lockfile_version": "1",
3+
"packages": {
4+
5+
"last_modified": "2023-06-01T03:57:58Z",
6+
"resolved": "github:NixOS/nixpkgs/8d4d822bc0efa9de6eddc79cb0d82897a9baa750#nodePackages.pnpm",
7+
"source": "devbox-search",
8+
"version": "8.6.0"
9+
},
10+
"nodejs@18": {
11+
"last_modified": "2023-06-29T16:20:38Z",
12+
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#nodejs_18",
13+
"source": "devbox-search",
14+
"version": "18.16.1"
15+
}
16+
}
17+
}

examples/development/nodejs/nodejs-typescript/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": [
3-
"nodejs@18.16"
3+
"nodejs@18"
44
],
55
"shell": {
66
"init_hook": [
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
22
"lockfile_version": "1",
33
"packages": {
4-
"nodePackages.typescript": {
5-
"resolved": "github:NixOS/nixpkgs/f80ac848e3d6f0c12c52758c0f25c10c97ca3b62#nodePackages.typescript"
6-
},
7-
8-
"last_modified": "2023-05-01T16:53:22Z",
9-
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#nodejs_18",
10-
"version": "18.16.0"
4+
"nodejs@18": {
5+
"last_modified": "2023-06-29T16:20:38Z",
6+
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#nodejs_18",
7+
"source": "devbox-search",
8+
"version": "18.16.1"
119
}
1210
}
13-
}
11+
}

examples/development/nodejs/nodejs-yarn/devbox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packages": [
3-
"nodejs@19.8",
3+
"nodejs@18",
44
55
],
66
"shell": {

examples/development/nodejs/nodejs-yarn/devbox.lock

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"lockfile_version": "1",
33
"packages": {
4-
5-
"last_modified": "2023-03-31T22:52:29Z",
6-
"resolved": "github:NixOS/nixpkgs/242246ee1e58f54d2322227fc5eef53b4a616a31#nodejs-19_x",
7-
"version": "19.8.1"
4+
"nodejs@18": {
5+
"last_modified": "2023-06-29T16:20:38Z",
6+
"resolved": "github:NixOS/nixpkgs/3c614fbc76fc152f3e1bc4b2263da6d90adf80fb#nodejs_18",
7+
"source": "devbox-search",
8+
"version": "18.16.1"
89
},
910
1011
"last_modified": "2023-05-01T16:53:22Z",

0 commit comments

Comments
 (0)