We currently build the project with a mixture of pnpm
and lerna
.
You’ll want to start by installing each of these:
npm install -g pnpm
pnpm install -g lerna
Then, check out the code for the project and install:
git checkout # ...
pnpm install .
We use lerna
as the build system for the project, as we anticipate adding multiple modules for examples of embedding AI Dev into applications in the near future.
From the root of the project, you can build it with:
lerna run build
Or, if you’re in a single package, you can build with:
npm run build
If you want to test the npx command, you need to link it to your global namespace:
cd magnet-agent
pnpm link .
npm magnet-agent # will not work outside magnet-agent
If you want to go back to testing the public version, you can run:
pnpm unlink .