docs/build-pieces/piece-reference/external-libraries.mdx
The Activepieces repository is structured as a monorepo, employing Turbo as its build tool.
To keep our main package.json as light as possible, we keep libraries that are only used for a piece in the piece package.json . This means when adding a new library you should navigate to the piece folder and install the library with our package manager bun
cd packages/pieces/<piece-path>
bun install --save <library-name>
Guidelines:
When pieces are built for publishing, all dependency versions, including transitive dependencies (dependencies of your dependencies), are automatically pinned to the exact versions resolved in the monorepo's bun.lock file.
This means: