Skip to content

Commit

Permalink
Create Block: Add missing viewScriptModule field
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Feb 17, 2024
1 parent 96cb434 commit 43288b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/create-block/lib/init-block.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function initBlockJSON( {
viewStyle,
render,
viewModule,
viewScriptModule,
viewScript,
customBlockJSON,
example,
Expand Down Expand Up @@ -66,6 +67,7 @@ async function initBlockJSON( {
viewStyle,
render,
viewModule,
viewScriptModule,
viewScript,
...customBlockJSON,
} ).filter( ( [ , value ] ) => !! value )
Expand Down
2 changes: 2 additions & 0 deletions packages/create-block/lib/scaffold.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = async (
viewStyle,
render,
viewModule,
viewScriptModule,
viewScript,
variantVars,
customPackageJSON,
Expand Down Expand Up @@ -88,6 +89,7 @@ module.exports = async (
viewStyle,
render,
viewModule,
viewScriptModule,
viewScript,
variantVars,
customPackageJSON,
Expand Down

0 comments on commit 43288b8

Please sign in to comment.