[wp-trac] [WordPress Trac] #49460: wp-config gets cleaned out from build folder on rebuild

WordPress Trac noreply at wordpress.org
Tue Feb 18 23:35:41 UTC 2020


#49460: wp-config gets cleaned out from build folder on rebuild
------------------------------+-----------------------------
 Reporter:  isabel_brison     |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  reopened
 Priority:  normal            |   Milestone:  5.4
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------------

Comment (by isabel_brison):

 > As an alternative, we could preserve the file if it exists in build, but
 still copy it over from src if it also exists there. 49460.2.diff​ should
 do that.

 Thanks @SergeyBiryukov, this seems to me the best way forward!

 It's the solution most compatible with  `@wordpress/env`, which adds `wp-
 config` in the root of the WP instance it's running from. This is because
 `@wordpress/env` can be configured to run not only from `build` or `src`
 but from any tag or version of development or production WP, so we can't
 assume a particular folder structure.

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


More information about the wp-trac mailing list