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:
parent
d278f1b259
commit
35677db1f1
10
.netlify/netlify-plugin-pnpm/index.js
Normal file
10
.netlify/netlify-plugin-pnpm/index.js
Normal file
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
2
.netlify/netlify-plugin-pnpm/manifest.yml
Normal file
2
.netlify/netlify-plugin-pnpm/manifest.yml
Normal file
@ -0,0 +1,2 @@
|
||||
name: netlify-plugin-pnpm
|
||||
inputs: []
|
@ -23,3 +23,4 @@ docker-examples/
|
||||
build/
|
||||
.vscode/
|
||||
.github/
|
||||
.netlify/
|
||||
|
7
netlify.toml
Normal file
7
netlify.toml
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
[build]
|
||||
command = "pnpm run build"
|
||||
publish = "dist"
|
||||
|
||||
[[plugins]]
|
||||
package = "/.netlify/netlify-plugin-pnpm"
|
Loading…
Reference in New Issue
Block a user