Skip to content

Commit

Permalink
Respect the current branch node tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Apr 4, 2024
1 parent 79d2df0 commit f27709a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ function clean_composer(string $dir)
chdir($repo);
system($systemGit . ' archive ' . $remote . ' | tar -x -C ' . $fullpath);
system('cp build/fido.jwt ' . $fullpath . '/plugins/system/webauthn/fido.jwt');

// Get the Node tools from the current header of the repository
system('rm -rf ' . $fullpath . '/build/build-modules-js');
system('cp -r ' . $repo . '/build/build-modules-js ' . $fullpath . '/build/build-modules-js');

// Install PHP and NPM dependencies and compile required media assets, skip Composer autoloader until post-cleanup
chdir($fullpath);
system('composer install --no-dev --no-autoloader --ignore-platform-reqs', $composerReturnCode);
Expand Down

0 comments on commit f27709a

Please sign in to comment.