Skip to content

Commit 463c975

Browse files
authored
templates: fix pnpm 10 ignored build scripts warning (#12974)
When using pnpm 10 to install any of our templates, the following warning is thrown: ![Screenshot 2025-06-29 at 13 23 28@2x](https://github.com/user-attachments/assets/450630f1-0455-48a0-96e9-516110b6146c) > Warning: Ignored build scripts: esbuild, unrs-resolver. Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts. This PR fixes this by adding those packages to `onlyBuiltDependencies`
1 parent 4458f74 commit 463c975

File tree

9 files changed

+27
-9
lines changed

9 files changed

+27
-9
lines changed

templates/_template/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
},
5656
"pnpm": {
5757
"onlyBuiltDependencies": [
58-
"sharp"
58+
"sharp",
59+
"esbuild",
60+
"unrs-resolver"
5961
]
6062
}
6163
}

templates/blank/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
},
5555
"pnpm": {
5656
"onlyBuiltDependencies": [
57-
"sharp"
57+
"sharp",
58+
"esbuild",
59+
"unrs-resolver"
5860
]
5961
}
6062
}

templates/plugin/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@
110110
},
111111
"pnpm": {
112112
"onlyBuiltDependencies": [
113-
"sharp"
113+
"sharp",
114+
"esbuild",
115+
"unrs-resolver"
114116
]
115117
},
116118
"registry": "https://registry.npmjs.org/"

templates/website/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@
8686
},
8787
"pnpm": {
8888
"onlyBuiltDependencies": [
89-
"sharp"
89+
"sharp",
90+
"esbuild",
91+
"unrs-resolver"
9092
]
9193
}
9294
}

templates/with-payload-cloud/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
},
4444
"pnpm": {
4545
"onlyBuiltDependencies": [
46-
"sharp"
46+
"sharp",
47+
"esbuild",
48+
"unrs-resolver"
4749
]
4850
}
4951
}

templates/with-postgres/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
},
5757
"pnpm": {
5858
"onlyBuiltDependencies": [
59-
"sharp"
59+
"sharp",
60+
"esbuild",
61+
"unrs-resolver"
6062
]
6163
}
6264
}

templates/with-vercel-mongodb/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
},
5555
"pnpm": {
5656
"onlyBuiltDependencies": [
57-
"sharp"
57+
"sharp",
58+
"esbuild",
59+
"unrs-resolver"
5860
]
5961
},
6062
"packageManager": "pnpm@10.12.4"

templates/with-vercel-postgres/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@
5555
},
5656
"pnpm": {
5757
"onlyBuiltDependencies": [
58-
"sharp"
58+
"sharp",
59+
"esbuild",
60+
"unrs-resolver"
5961
]
6062
},
6163
"packageManager": "pnpm@10.12.4"

templates/with-vercel-website/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@
8787
},
8888
"pnpm": {
8989
"onlyBuiltDependencies": [
90-
"sharp"
90+
"sharp",
91+
"esbuild",
92+
"unrs-resolver"
9193
]
9294
},
9395
"packageManager": "pnpm@10.12.4"

0 commit comments

Comments
 (0)