From 63bce9726043f0b3a768dc407660c797a1ca7a0d Mon Sep 17 00:00:00 2001 From: Grant Kinney Date: Fri, 12 Aug 2022 08:37:51 -0500 Subject: [PATCH] Adds filter to monorepo path (#25443) * Adds filter to monorepo path for running development plugin outside docker * Add docblock for filter --- tools/docker/mu-plugins/01-monorepo.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/docker/mu-plugins/01-monorepo.php b/tools/docker/mu-plugins/01-monorepo.php index f98a28b6c31fe..4828169b87678 100644 --- a/tools/docker/mu-plugins/01-monorepo.php +++ b/tools/docker/mu-plugins/01-monorepo.php @@ -39,7 +39,14 @@ class Monorepo { * Class constructor. */ public function __construct() { - $this->monorepo = '/usr/local/src/jetpack-monorepo/'; + /** + * Filter the monorepo path for development environments. + * + * @since $$next-version$$ + * + * @param string $path Monorepo file path. + */ + $this->monorepo = apply_filters( 'jetpack_monorepo_path', '/usr/local/src/jetpack-monorepo/' ); $this->plugins = $this->monorepo . 'projects/plugins/'; $this->packages = $this->monorepo . 'projects/packages/'; }