Skip to content

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_modules folder. 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 .seccorc file to make the connection between destination and source. This allows you to use secco with 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.

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:

  • version is set to the temporary version.
  • Other packages that secco publishes along the way are pinned to their temporary versions in dependencies, peerDependencies and optionalDependencies.
  • With pnpm workspaces, workspace: specifiers in those fields are replaced with latest, and catalog:/catalog:<name> specifiers are replaced with the versions defined in pnpm-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.