From 3c3bbbb886da9d5eb788420fe8aee2c0ff5703e8 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers <359867+desrosj@users.noreply.github.com> Date: Thu, 26 Mar 2026 21:04:41 -0400 Subject: [PATCH] Revert incidental change. --- tools/gutenberg/copy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/gutenberg/copy.js b/tools/gutenberg/copy.js index 02fcca9f5d76d..b3c4b7f9aa9ba 100644 --- a/tools/gutenberg/copy.js +++ b/tools/gutenberg/copy.js @@ -25,7 +25,11 @@ const gutenbergBuildDir = path.join( gutenbergDir, 'build' ); */ const args = process.argv.slice( 2 ); const buildDirArg = args.find( ( arg ) => arg.startsWith( '--build-dir=' ) ); -const buildTarget = 'src'; +const buildTarget = buildDirArg + ? buildDirArg.split( '=' )[ 1 ] + : args.includes( '--dev' ) + ? 'src' + : 'build'; const wpIncludesDir = path.join( rootDir, buildTarget, 'wp-includes' );