Skip to content

Commit fa36321

Browse files
build: added file renaming for premium build
1 parent f4e4cd0 commit fa36321

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

scripts/package.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,16 @@ async function packagePlugin() {
312312
}
313313
}
314314

315+
// Rename interactions.php to plugin.php for premium builds only
316+
if ( IS_PREMIUM_BUILD ) {
317+
const oldPath = path.join( BUILD_DIR, 'interactions.php' )
318+
const newPath = path.join( BUILD_DIR, 'plugin.php' )
319+
if ( fs.existsSync( oldPath ) ) {
320+
fs.renameSync( oldPath, newPath )
321+
console.log( '📝 Renamed interactions.php to plugin.php for premium build' )
322+
}
323+
}
324+
315325
console.log( '📁 Copying source directories...' )
316326
// Pass isSrcRoot = true for the top-level src folder
317327
copyDir( 'src', path.join( BUILD_DIR, 'src' ), true )

0 commit comments

Comments
 (0)