Skip to main content

reconfigure

The reconfigure will run a variety of housekeeping task to ensure the monorepo is correctly set up.

Run npm run reconfigure in the root to trigger this script.

Under the hood, this will run:

Terminal
node scripts/reconfigure.mjs

The main task of this script to to create the scripts to launch the core service container for local development. For that to work, we map the local git repository into the container. Since the path to the local git repository can be different on every contributor’s machine, we need to generate this script dynamically.

This run script is idempotent

It is safe to run this script more than once without compounding effects.

note

The reason there is both a preconfigure and a reconfigure is because some things — like creating folders and managing permissions — are easier to do in a shell script than in Javascript.

As such, the preconfigure script runs shell commands, whereas the reconfigure run script runs javascript code. Together, the get the job done.