Skip to content

Commit

Permalink
Adds filter to monorepo path (#25443)
Browse files Browse the repository at this point in the history
* Adds filter to monorepo path for running development plugin outside docker

* Add docblock for filter
  • Loading branch information
creativecoder authored Aug 12, 2022
1 parent 0c71318 commit 63bce97
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/docker/mu-plugins/01-monorepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
}
Expand Down

0 comments on commit 63bce97

Please sign in to comment.