Skip to content

Commit 35677db

Browse files
committed
chore: add netlify configuration
1 parent d278f1b commit 35677db

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.netlify/netlify-plugin-pnpm/index.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
onPreBuild: async ({ utils: { build, run } }) => {
3+
try {
4+
await run.command("npm install -g pnpm")
5+
await run.command("pnpm install")
6+
} catch (error) {
7+
return build.failBuild(error)
8+
}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: netlify-plugin-pnpm
2+
inputs: []

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ docker-examples/
2323
build/
2424
.vscode/
2525
.github/
26+
.netlify/

netlify.toml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
[build]
3+
command = "pnpm run build"
4+
publish = "dist"
5+
6+
[[plugins]]
7+
package = "/.netlify/netlify-plugin-pnpm"

0 commit comments

Comments
 (0)