netlify-cli 10.18.0-rc1 → 10.18.0-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@netlify/build": "^27.13.0",
13
+ "@netlify/build": "^27.14.0",
14
14
  "@netlify/config": "^18.2.0",
15
15
  "@netlify/edge-bundler": "^1.12.1",
16
16
  "@netlify/framework-info": "^9.2.0",
@@ -1189,9 +1189,9 @@
1189
1189
  "integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
1190
1190
  },
1191
1191
  "node_modules/@netlify/build": {
1192
- "version": "27.13.0",
1193
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.13.0.tgz",
1194
- "integrity": "sha512-SzWG4adXTqDDj4SAoOTSsFisg6nk+NDFNyg7A7nhv5FZ/0odHu5S5efhWuNl4UlUuXEVsBvmUOTScKlhPYWqeQ==",
1192
+ "version": "27.14.0",
1193
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.14.0.tgz",
1194
+ "integrity": "sha512-/o1Q+Z2JNpU15S63AsyT4HBPbiweMhBO6jclxNN9kjBnlTefcBJ1c5zN7cOlrcHM+SC+tRPC0oJM/aL/OkXsWg==",
1195
1195
  "dependencies": {
1196
1196
  "@bugsnag/js": "^7.0.0",
1197
1197
  "@netlify/cache-utils": "^4.0.0",
@@ -23345,9 +23345,9 @@
23345
23345
  "integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
23346
23346
  },
23347
23347
  "@netlify/build": {
23348
- "version": "27.13.0",
23349
- "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.13.0.tgz",
23350
- "integrity": "sha512-SzWG4adXTqDDj4SAoOTSsFisg6nk+NDFNyg7A7nhv5FZ/0odHu5S5efhWuNl4UlUuXEVsBvmUOTScKlhPYWqeQ==",
23348
+ "version": "27.14.0",
23349
+ "resolved": "https://registry.npmjs.org/@netlify/build/-/build-27.14.0.tgz",
23350
+ "integrity": "sha512-/o1Q+Z2JNpU15S63AsyT4HBPbiweMhBO6jclxNN9kjBnlTefcBJ1c5zN7cOlrcHM+SC+tRPC0oJM/aL/OkXsWg==",
23351
23351
  "requires": {
23352
23352
  "@bugsnag/js": "^7.0.0",
23353
23353
  "@netlify/cache-utils": "^4.0.0",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "10.18.0-rc1",
4
+ "version": "10.18.0-rc2",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "@whitep4nth3r (https://twitter.com/whitep4nth3r)",
@@ -222,7 +222,7 @@
222
222
  "prettier": "--ignore-path .gitignore --loglevel=warn \"{src,tools,scripts,site,tests,.github}/**/*.{mjs,cjs,js,md,yml,json,html}\" \"*.{mjs,cjs,js,yml,json,html}\" \".*.{mjs,cjs,js,yml,json,html}\" \"!CHANGELOG.md\" \"!npm-shrinkwrap.json\" \"!**/*/package-lock.json\" \"!.github/**/*.md\""
223
223
  },
224
224
  "dependencies": {
225
- "@netlify/build": "^27.13.0",
225
+ "@netlify/build": "^27.14.0",
226
226
  "@netlify/config": "^18.2.0",
227
227
  "@netlify/edge-bundler": "^1.12.1",
228
228
  "@netlify/framework-info": "^9.2.0",
@@ -454,9 +454,21 @@ const dev = async (options, command) => {
454
454
  settings = await detectServerSettings(devConfig, options, site.root)
455
455
 
456
456
  // If there are plugins that we should be running for this site, add them
457
- // to the config as if they were declared in netlify.toml.
457
+ // to the config as if they were declared in netlify.toml. We must check
458
+ // whether the plugin has already been added by another source (like the
459
+ // TOML file or the UI), as we don't want to run the same plugin twice.
458
460
  if (settings.plugins) {
459
- const newPlugins = settings.plugins.map((pluginName) => ({ package: pluginName, origin: 'config', inputs: {} }))
461
+ const { plugins: existingPlugins = [] } = cachedConfig.config
462
+ const existingPluginNames = new Set(existingPlugins.map((plugin) => plugin.package))
463
+ const newPlugins = settings.plugins
464
+ .map((pluginName) => {
465
+ if (existingPluginNames.has(pluginName)) {
466
+ return
467
+ }
468
+
469
+ return { package: pluginName, origin: 'config', inputs: {} }
470
+ })
471
+ .filter(Boolean)
460
472
 
461
473
  cachedConfig.config.plugins = [...newPlugins, ...cachedConfig.config.plugins]
462
474
  }
@@ -643,7 +655,7 @@ const getBuildOptions = ({ cachedConfig, options: { context, cwd, debug, dry, of
643
655
  context,
644
656
  mode: 'cli',
645
657
  telemetry: false,
646
- buffer: !debug,
658
+ buffer: false,
647
659
  offline,
648
660
  cwd,
649
661
  })