Yarn Monorepo Build failing with 0.18.4

For the last few weeks, we’ve been running our Yarn monorepo and deploying consistently without problems. However, as of this morning, we are getting errors with Command "deploy" not found where “deploy” is any command in our package.json scripts file . We haven’t changed base directory, publish directory, our netlify.toml nor our build command. We have a deploy preview that built fine yesterday and has not had any changes since that is now failing with the below message if I try to re-build:

1:44:26 PM: ┌───────────────────────────────────────────────────────────┐
1:44:26 PM: │ 2. Running onPreBuild command from deputy-content-fetcher │
1:44:26 PM: └───────────────────────────────────────────────────────────┘
1:44:26 PM: ​
1:44:27 PM: ​
1:44:27 PM: ┌─────────────────────────────┐
1:44:27 PM: │    Plugin internal error    │
1:44:27 PM: └─────────────────────────────┘
1:44:27 PM: ​
1:44:27 PM: ❯ Error message
1:44:27 PM:   Error: Command failed: yarn update:stats
1:44:27 PM:   error Command "update:stats" not found.
1:44:27 PM: ​
1:44:27 PM: ​
1:44:27 PM: ❯ Plugin details
1:44:27 PM:   ID:             deputy-content-fetcher
1:44:27 PM:   npm link:       https://www.npmjs.com/package/undefined​
1:44:27 PM: ​
1:44:27 PM: ❯ Error location
1:44:27 PM:   In "onPreBuild" event in local plugin "./build/storyblokFetcher.js"
1:44:27 PM:       at ChildProcess.exithandler (child_process.js:294:12)
1:44:27 PM:       at ChildProcess.emit (events.js:198:13)
1:44:27 PM:       at maybeClose (internal/child_process.js:982:16)
1:44:27 PM:       at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)​
1:44:27 PM: ​
1:44:27 PM: ❯ Error properties
1:44:27 PM:   { killed: false,
1:44:27 PM:     code: 1,
1:44:27 PM:     signal: null,
1:44:27 PM:     cmd: 'yarn update:stats',
1:44:27 PM:     stdout:
1:44:27 PM:      '\u001b[2K\u001b[1G\u001b[1myarn run v1.17.0\u001b[22m\n\u001b[2K\u001b[1G\u001b[34minfo\u001b[39m Visit \u001b[1mhttps://yarnpkg.com/en/docs/cli/run\u001b[22m for documentation about this command.\n',
1:44:27 PM:     stderr:
1:44:27 PM:      '\u001b[2K\u001b[1G\u001b[31merror\u001b[39m Command "update:stats" not found.\n' }
1:44:27 PM: ​
1:44:27 PM: ┌─────────────────────────────┐
1:44:27 PM: │  END Plugin internal error  │
1:44:27 PM: └─────────────────────────────┘

Okay, so it looks like this might be something to do with the “build plugins” beta that our repo is enabled with. My setup was like this:

[build]
  base = "website/"
  publish = "website/dist"
  command = "yarn deploy"

And the builds started working again when I changed it to this:

[build]
  base = "website/"
  publish = "website/dist"
  command = "yarn workspace website deploy"

We have another site within the same monorepo setup similar to the first code block above that is not setup for the build plugins beta that built fine without the workspace value, so I’m guessing that there was some updates around Yarn and monorepo management that is making the workspace command essential now.

thanks for continuing to work on this, @deputy. There may well be some changes there that are affecting things as you are describing.