[wp-trac] [WordPress Trac] #50589: Update packages (GB 8.5)

WordPress Trac noreply at wordpress.org
Tue Jul 7 12:30:40 UTC 2020


#50589: Update packages (GB 8.5)
-------------------------+------------------------------
 Reporter:  ellatrix     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Editor       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by gziolo):

 Yes, I would expect to see changes in JSON and/or PHP files related to
 blocks, plus new versions generated to the assets file for modules. `npm
 run build:dev` should do the trick. Ideally, we package that into a new
 npm script for convenience:

 {{{
 diff --git a/package.json b/package.json
 index 787b285eba..5d83f36633 100644
 --- a/package.json
 +++ b/package.json
 @@ -162,6 +162,7 @@
                 "env:cli": "node ./tools/local-env/scripts/docker.js run
 cli",
                 "env:logs": "node ./tools/local-env/scripts/docker.js
 logs",
                 "env:pull": "node ./tools/local-env/scripts/docker.js
 pull",
 +               "packages-update": "wp-scripts packages-update && npm run
 build:dev",
                 "test:php": "node ./tools/local-env/scripts/docker.js run
 --rm phpunit phpunit",
                 "test:e2e": "node ./tests/e2e/run-tests.js"
         }
 }}}

 `npm run build` might work as well, but I'm not sure. We would have to
 test it first.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50589#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list