Skip to content

Commit e73b618

Browse files
cursoragentserhalp
andcommitted
Refactor: Update plugin upgrade instructions and fix test output
Co-authored-by: philippe.serhal <philippe.serhal@gmail.com>
1 parent 30cd508 commit e73b618

File tree

7 files changed

+256
-65
lines changed

7 files changed

+256
-65
lines changed

packages/build/src/log/messages/compatibility.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,10 @@ const getUpgradeInstruction = function (loadedFrom, origin) {
140140
}
141141

142142
if (origin === 'ui') {
143-
return 'To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)'
143+
return 'To upgrade this plugin, go to Project Configuration > Build & deploy > Build settings in your site dashboard'
144144
}
145145

146-
return 'To upgrade this plugin, please remove it from "netlify.toml" and install it from the Netlify plugins directory instead (https://app.netlify.com/plugins)'
146+
return 'To upgrade this plugin, please remove it from "netlify.toml" and install it from Project Configuration > Build & deploy > Build settings in your site dashboard instead'
147147
}
148148

149149
// Print a warning message when plugins are using a version that is too recent

packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/index.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/manifest.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/build/tests/plugins_list/fixtures/plugins_cache_outdated/.netlify/plugins-old/node_modules/netlify-plugin-contextual-env-old/package.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "netlify-local-plugins",
3+
"description": "This directory contains Build plugins that have been automatically installed by Netlify.",
4+
"version": "1.0.0",
5+
"type": "module",
6+
"private": true,
7+
"author": "Netlify",
8+
"license": "MIT",
9+
"dependencies": {
10+
"netlify-plugin-contextual-env": "0.3.0"
11+
}
12+
}

packages/build/tests/plugins_list/snapshots/tests.js.md

Lines changed: 229 additions & 63 deletions
Large diffs are not rendered by default.
218 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)