Simultaneously building Tokens and ModulesCollection can occur in parallel while the Lexer will build once Tokens and ModulesCollection are built for the first time. The following code snippet contains an error due to the use of &
in the line
npm run "Incremental building" &
:
cd UAA_Generators/JapaneseSyntax/ByNodeJS/DataStructures/Tokens || exit
npm run "Incremental building" &
cd ../ModulesCollection || exit
npm run "Incremental building" &
cd ../../Actuators/Lexer || exit
npm run "Incremental building"
The script for "Incremental building" is the same for each subproject:
rimraf Distributable & tsc --watch
The issue arises because of the --watch
option, causing the task to never end (unless manually terminated). Is there a way to determine when the initial building of Tokens and ModulesCollection is complete?
Please keep in mind that I require rebuilding upon changes, so simply disabling the --watch
option is not a viable solution.