0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/.netlify/netlify-plugin-pnpm/index.js

11 lines
274 B
JavaScript
Raw Normal View History

2021-07-11 08:54:53 -05:00
module.exports = {
onPreBuild: async ({ utils: { build, run } }) => {
try {
await run.command("npm install -g pnpm")
2021-07-11 09:02:18 -05:00
await run.command("pnpm install --ignore-scripts --frozen-lockfile")
2021-07-11 08:54:53 -05:00
} catch (error) {
return build.failBuild(error)
}
}
}