Skip to content

Commit 81e3297

Browse files
authored
Include build directory in block.json version updates (#2671)
1 parent 85f6ba3 commit 81e3297

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/__tests__/release.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function old_function() {}`;
239239
} );
240240
} );
241241

242-
describe( 'Block.json file patterns (src/**/block.json)', () => {
242+
describe( 'Block.json file patterns (src/**/block.json and build/**/block.json)', () => {
243243
const patterns = [
244244
{
245245
search: /"version": "\d+\.\d+\.\d+"/,

bin/release.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ async function createRelease() {
280280
] );
281281
} );
282282

283-
// Update version in block.json files
284-
const blockJsonFiles = execWithOutput( 'find src -name "block.json"' ).split( '\n' );
283+
// Update version in block.json files (src and build directories)
284+
const blockJsonFiles = execWithOutput( 'find src build -name "block.json"' ).split( '\n' );
285285

286286
blockJsonFiles.forEach( ( filePath ) => {
287287
if ( filePath ) {

0 commit comments

Comments
 (0)