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`
This commit is contained in:
Alessio Gravili
2025-06-29 15:17:34 -07:00
committed by GitHub
parent 4458f74cef
commit 463c9754c7
9 changed files with 27 additions and 9 deletions

View File

@@ -55,7 +55,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
}
}

View File

@@ -54,7 +54,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
}
}

View File

@@ -110,7 +110,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
},
"registry": "https://registry.npmjs.org/"

View File

@@ -86,7 +86,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
}
}

View File

@@ -43,7 +43,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
}
}

View File

@@ -56,7 +56,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
}
}

View File

@@ -54,7 +54,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
},
"packageManager": "pnpm@10.12.4"

View File

@@ -55,7 +55,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
},
"packageManager": "pnpm@10.12.4"

View File

@@ -87,7 +87,9 @@
},
"pnpm": {
"onlyBuiltDependencies": [
"sharp"
"sharp",
"esbuild",
"unrs-resolver"
]
},
"packageManager": "pnpm@10.12.4"