Commit Graph

8 Commits (78c8b17e33b493f41e42e92d9baead9df9ef3ea4)

Author SHA1 Message Date
Panagiotis Papadopoulos 75431ca634 build: make running of npm ci in build scripts configurable
* moved the running of npm ci from copy-dist to cleanupNodeModules
* added flag to disable it (necessary for electron-forge)
2025-03-27 00:00:41 +07:00
Panagiotis Papadopoulos 0b428035ae build(cleanupNodeModules): move removal of elements to its own function
also added a logging function for debugging purposes
2025-03-26 09:48:06 +07:00
Panagiotis Papadopoulos 51f2e23c2f build(cleanupNodeModules): delete .bin folder
this is only needed for executing package scripts -> which we don't do in production

fixes #1499
2025-03-26 09:28:50 +07:00
Panagiotis Papadopoulos 1528703ed9 build(cleanupNodeModules): add some minimalistic logging 2025-03-26 09:26:22 +07:00
Panagiotis Papadopoulos 1150f78b15 build(cleanupNodeModules): use path.join and basePath for extraFoldersDelete 2025-03-26 09:18:16 +07:00
Panagiotis Papadopoulos 6fe23f9a13 chore(cleanupNodeModules): remove commented out paths
extra note on mermaid: that should be packed by webpack now, so we just need to move it to devDeps and and we should be good
2025-03-26 09:15:33 +07:00
Panagiotis Papadopoulos b457fa2e87 chore(cleanupNodeModules): rename nodeDir to nodeModulesContent 2025-03-26 09:12:22 +07:00
Panagiotis Papadopoulos 1ceaafa1e8 build: move cleanupNodeModules to its own file
this is necessary, since for Docker and electron-forge, we need to run this as an extra step after copy-dist

for electron-forge: after it is done with its own "pruning", as we otherwise would need to also take care of certain electron related pruning

for Docker: as a last step in the build stage
2025-03-26 08:12:48 +07:00