Skip to content

Commit

Permalink
Build: Include JSON files in zip archive (#19772)
Browse files Browse the repository at this point in the history
* Build: Include JSON files

* Zip build script: Include json files in `build/block-library/blocks/`

Co-Authored-By: Jorge Bernal <jorge@automattic.com>

Co-authored-by: Jorge Bernal <jbernal@gmail.com>
  • Loading branch information
2 people authored and ellatrix committed Jan 22, 2020
1 parent 665c050 commit 29d4adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build-plugin-zip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ npm run build
php bin/generate-gutenberg-php.php > gutenberg.tmp.php
mv gutenberg.tmp.php gutenberg.php

build_files=$(ls build/*/*.{js,css,asset.php} build/block-library/blocks/*.php)
build_files=$(ls build/*/*.{js,css,asset.php} build/block-library/blocks/*.{php,json})

# Generate the plugin zip file.
status "Creating archive... 🎁"
Expand Down

0 comments on commit 29d4adf

Please sign in to comment.