diff --git a/.netlify/netlify-plugin-pnpm/index.js b/.netlify/netlify-plugin-pnpm/index.js deleted file mode 100644 index 38b62c5..0000000 --- a/.netlify/netlify-plugin-pnpm/index.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - onPreBuild: async ({ utils: { build, run } }) => { - try { - await run.command("npm install -g pnpm") - await run.command("pnpm install --frozen-lockfile=false") - } catch (error) { - return build.failBuild(error) - } - } -} \ No newline at end of file diff --git a/.netlify/netlify-plugin-pnpm/manifest.yml b/.netlify/netlify-plugin-pnpm/manifest.yml deleted file mode 100644 index afed29f..0000000 --- a/.netlify/netlify-plugin-pnpm/manifest.yml +++ /dev/null @@ -1,2 +0,0 @@ -name: netlify-plugin-pnpm -inputs: [] \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index dcdd151..bdf3334 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,5 +1,5 @@ -[build] - command = "pnpm build || ( npm install pnpm && npx pnpm build )" +[build.environment] +NPM_FLAGS="--version" -[[plugins]] - package = "/.netlify/netlify-plugin-pnpm" \ No newline at end of file +[build] +command = "npx pnpm@7 install --store-dir=.pnpm --frozen-lockfile && npx pnpm@7 build" \ No newline at end of file