Skip to content

Commit 003664e

Browse files
committed
Build/Test Tools: Remove unintentional change in [62157].
This removes a change that was unintentionally included in the previous commit. Reviewed by peterwilsoncc. Unprops desrosj. Props peterwilsoncc. Fixes #64925. See #64393. git-svn-id: https://develop.svn.wordpress.org/trunk@62158 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9aa1bdd commit 003664e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tools/gutenberg/copy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ const gutenbergBuildDir = path.join( gutenbergDir, 'build' );
2525
*/
2626
const args = process.argv.slice( 2 );
2727
const buildDirArg = args.find( ( arg ) => arg.startsWith( '--build-dir=' ) );
28-
const buildTarget = 'src';
28+
const buildTarget = buildDirArg
29+
? buildDirArg.split( '=' )[ 1 ]
30+
: args.includes( '--dev' )
31+
? 'src'
32+
: 'build';
2933

3034
const wpIncludesDir = path.join( rootDir, buildTarget, 'wp-includes' );
3135

0 commit comments

Comments
 (0)