1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/.netlify/netlify-plugin-pnpm/index.js

11 lines
239 B
JavaScript
Raw Normal View History

2021-07-11 15:54:53 +02:00
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)
}
}
}