[wp-trac] [WordPress Trac] #61575: Node Modules in sub-directories not getting ignored while exporting the theme
WordPress Trac
noreply at wordpress.org
Fri Feb 7 15:00:04 UTC 2025
#61575: Node Modules in sub-directories not getting ignored while exporting the
theme
-----------------------------+------------------------------
Reporter: rajinsharwar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch close | Focuses:
-----------------------------+------------------------------
Changes (by desrosj):
* keywords: has-patch 2nd-opinion => has-patch close
Comment:
It would be nice if the export feature could be configured within
`theme.json`. Then theme developers could maybe disable export entirely,
or configure a list of patterns, assets, or even directories to include or
exclude when performing exports.
I personally lean towards closing this out, though. Without a way for a
theme developer to intentionally indicate what should be considered a
requirement for the theme, it's impossible for Core to guess correctly
100% of the time.
In the case of `node_modules`, it's either required, or someone is
`_doing_it_wrong()` when zipping up their theme release or
uploading/deploying their custom theme. Skipping it during export would
hide the fact that the directory is present on the server, which could be
a way to inform them that they should remove it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61575#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list