From ca647aad54765c0cacf56bacac674f0f7d32cb04 Mon Sep 17 00:00:00 2001 From: Okiki Ojo Date: Mon, 30 May 2022 01:35:25 +0000 Subject: [PATCH] chore: net...lify --- .netlify/netlify-plugin-pnpm/index.js | 10 ---------- .netlify/netlify-plugin-pnpm/manifest.yml | 2 -- netlify.toml | 8 ++++---- 3 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 .netlify/netlify-plugin-pnpm/index.js delete mode 100644 .netlify/netlify-plugin-pnpm/manifest.yml 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 -- knotmirror 0.0.1