Features
secco boasts a lot of features to enable you to test local changes more quickly. Here’s a broad overview:
- File Sync & Package Publishing. By default, changes will be copied over from the source into the destination’s
node_modulesfolder. If necessary, changes are published to a local Verdaccio registry first, so that you don’t have to worry about symlinks or dependency hell. - Link Multiple Projects. secco reads the
.seccorcfile to make the connection between destination and source. This allows you to useseccowith as many source folders as you wish. - npm, yarn, pnpm, and bun support. You can use any of these package managers in your source and destination projects.
- Watch and CI mode. By default, secco starts a watch task. But you can also only run it once, enabling CI End-To-End testing use cases.
- Workspaces. Your source & destination folders can be a monorepo using workspaces.
Package publishing
Section titled “Package publishing”When copying files isn’t enough (for example when the destination uses workspaces, the package isn’t installed yet, or its dependencies changed), secco publishes the package to a temporary local Verdaccio registry. It publishes under a temporary version, <version>-secco-<postfix>, so that your local development versions never collide with published ones.
Before publishing, secco rewrites the package’s manifest:
versionis set to the temporary version.- Other packages that secco publishes along the way are pinned to their temporary versions in
dependencies,peerDependenciesandoptionalDependencies. - With pnpm workspaces,
workspace:specifiers in those fields are replaced withlatest, andcatalog:/catalog:<name>specifiers are replaced with the versions defined inpnpm-workspace.yaml.
devDependencies are not modified — they are irrelevant for consumers installing the published package. Once publishing is done, secco restores your original package.json.
