@@ -54,6 +54,7 @@ const wpThemeFileFunctions = require('@devloco/react-scripts-wptheme-utils/fileF
5454const copyPublicFolder = wpThemeFileFunctions . copyPublicFolder ;
5555const copyToThemeFolder = wpThemeFileFunctions . copyToThemeFolder ;
5656const cleanThemeFolder = wpThemeFileFunctions . cleanThemeFolder ;
57+ const writeReadyToDeployFile = wpThemeFileFunctions . writeReadyToDeployFile ;
5758
5859// These sizes are pretty large. We'll warn for bundles exceeding them.
5960const WARN_AFTER_BUNDLE_GZIP_SIZE = 512 * 1024 ;
@@ -83,7 +84,7 @@ checkBrowsers(paths.appPath, isInteractive)
8384 // if you're in it, you don't end up in Trash
8485 fs . emptyDirSync ( paths . appBuild ) ;
8586 // clean the WP theme folder
86- cleanThemeFolder ( true ) ;
87+ cleanThemeFolder ( paths , true ) ;
8788 // Merge with the public folder
8889 copyPublicFolder ( paths ) ;
8990 // Start the webpack build
@@ -226,7 +227,8 @@ function build(previousFileSizes) {
226227 warnings : messages . warnings ,
227228 } ;
228229
229- copyToThemeFolder ( paths ) ;
230+ copyToThemeFolder ( paths , true ) ;
231+ writeReadyToDeployFile ( paths ) ;
230232
231233 return resolve ( resolveArgs ) ;
232234 } ) ;
0 commit comments