1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-24 21:15:51 +01:00

chore: add netlify configuration

This commit is contained in:
Juan Picado 2021-07-11 15:54:53 +02:00
parent d278f1b259
commit 35677db1f1
4 changed files with 20 additions and 0 deletions

@ -0,0 +1,10 @@
module.exports = {
onPreBuild: async ({ utils: { build, run } }) => {
try {
await run.command("npm install -g pnpm")
await run.command("pnpm install")
} catch (error) {
return build.failBuild(error)
}
}
}

@ -0,0 +1,2 @@
name: netlify-plugin-pnpm
inputs: []

@ -23,3 +23,4 @@ docker-examples/
build/
.vscode/
.github/
.netlify/

7
netlify.toml Normal file

@ -0,0 +1,7 @@
[build]
command = "pnpm run build"
publish = "dist"
[[plugins]]
package = "/.netlify/netlify-plugin-pnpm"