[wp-trac] [WordPress Trac] #52689: Error with `npm run build` as `verify:source-maps` task runs in `build/wp-content`
WordPress Trac
noreply at wordpress.org
Wed Jun 16 22:56:56 UTC 2021
#52689: Error with `npm run build` as `verify:source-maps` task runs in `build/wp-
content`
--------------------------------------+----------------------
Reporter: afragen | Owner: desrosj
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.8
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Changes (by desrosj):
* owner: (none) => desrosj
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51173" 51173]:
{{{
#!CommitTicketReference repository="" revision="51173"
Build/Test Tools: Ignore sourceMaps for non WordPress Core files.
If a custom plugin or theme exists in the `build/wp-content` directory
with a sourcemap, the build` script is currently returning a warning and
failing.
This improves the `verify:source-maps` task in Grunt to ignore directories
and files that do not belong to WordPress Core.
Props ryelle, afragen, johnbillion.
Fixes #52689.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52689#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list