Skip to content

Commit

Permalink
Debug windows
Browse files Browse the repository at this point in the history
  • Loading branch information
luismulinari committed Dec 2, 2024
1 parent 6ccf597 commit c207eb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib/validations/custom-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ function validateZipEntry( entry: ZipEntry ) {
* @param {ZipEntry[]} zipEntries The zip entries to validate
*/
function validateZipThemes( rootFolder: string, zipEntries: ZipEntry[] ) {
const hasThemesDir = zipEntries.some(
entry => entry.isDirectory && entry.name.startsWith( path.join( rootFolder, 'themes/' ) )
);
const hasThemesDir = zipEntries.some( entry => {
console.log( entry.name, path.join( rootFolder, 'themes/' ) );
return entry.isDirectory && entry.name.startsWith( path.join( rootFolder, 'themes/' ) );
} );

if ( ! hasThemesDir ) {
exit.withError( errorMessages.missingThemes );
Expand Down

0 comments on commit c207eb8

Please sign in to comment.