Skip to content

Commit 94fb9f1

Browse files
committed
address comments
1 parent d613801 commit 94fb9f1

File tree

5 files changed

+21
-12
lines changed

5 files changed

+21
-12
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
],
55
"shell": {
66
"init_hook": [
7-
"npm install",
8-
"npm run start"
9-
]
7+
"npm install"
8+
],
9+
"scripts": {
10+
"run_test": "npm run start"
11+
}
1012
}
1113
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
],
66
"shell": {
77
"init_hook": [
8-
"pnpm install",
9-
"pnpm run start"
10-
]
8+
"pnpm install"
9+
],
10+
"scripts": {
11+
"run_test": "pnpm run start"
12+
}
1113
}
1214
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"shell": {
66
"init_hook": [
77
"npm install",
8-
"npm run build",
9-
"npm run start"
10-
]
8+
"npm run build"
9+
],
10+
"scripts": {
11+
"run_test": "npm run start"
12+
}
1113
}
1214
}

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
],
66
"shell": {
77
"init_hook": [
8-
"yarn install",
9-
"yarn start"
10-
]
8+
"yarn install"
9+
],
10+
"scripts": {
11+
"run_test": "yarn start"
12+
}
1113
}
1214
}

internal/templates/templates.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ var templates = map[string]string{
4141
"nginx": "examples/servers/nginx/",
4242
"nim": "examples/development/nim/spinnytest/",
4343
"node-npm": "examples/development/nodejs/nodejs-npm/",
44+
"node-pnpm": "examples/development/nodejs/nodejs-pnpm/",
4445
"node-typescript": "examples/development/nodejs/nodejs-typescript/",
4546
"node-yarn": "examples/development/nodejs/nodejs-yarn/",
4647
"php": "examples/development/php/php8.1/",

0 commit comments

Comments
 (0)