[wp-trac] [WordPress Trac] #51784: Build/Test Tools: Consider always running npm install with --no-optional

WordPress Trac noreply at wordpress.org
Mon Nov 16 10:38:14 UTC 2020


#51784: Build/Test Tools: Consider always running npm install with --no-optional
------------------------------+----------------------------
 Reporter:  azaozz            |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Future Release
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+----------------------------
 Currently there are 248 optional third (and forth, fifth) party
 dependencies in package-lock.json that don't seem needed.

 Running `npm install --no-optional` seems to still install many of them
 (presumably as they are needed by other dependencies) but reduces the
 overall size of node_modules by about 40MB and speeds things up a bit.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51784>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list