worktree-compose 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/SKILL.md +1 -1
  2. package/package.json +1 -1
package/SKILL.md CHANGED
@@ -60,7 +60,7 @@ Inside a worktree, `start`, `stop`, `restart`, `down`, `exec`, `logs` and `compo
60
60
  - **Untracked files.** Bind-mount sources, `env_file`s and secret / config files that git does not track, and what `.worktreeinclude` lists, are copied from main where the worktree lacks them. Not copied unasked: a service's data (database files and directories, mounts at `/var/lib/…` or `…/data`) and directories over 2000 files or 200 MB. Add those to `sync` if the worktree needs main's.
61
61
  - **Env files.** The configured env file (default `.env`) is copied fresh from main on every start; other untracked `.env*` files are copied when missing. Then `wtc` writes `COMPOSE_PROJECT_NAME`, `COMPOSE_FILE` when needed, the port variables, and `envOverrides`. `localhost:<port>` values are pointed at the worktree's ports. Edits made only in a worktree's copy of the configured env file are lost on the next start: put lasting values in main's file or in `envOverrides`.
62
62
  - **Tracked files are never written.** A tracked env file stays as the branch has it; its values go to `<file>.local` (a key that file already sets itself is left alone), and those of `.env` / `.env.development` to `.env.local` as well. If the app reads neither, set `envFile` to an untracked file it does read.
63
- - **Plain `docker compose`** in a worktree reaches its stack from the worktree's root when the env file is `.env`; with another `envFile`, add `--env-file .env.development`. `wtc compose` needs neither.
63
+ - **Plain `docker compose`** in a worktree reaches its stack from the worktree's root when the env file is an untracked `.env`; with another `envFile`, add `--env-file .env.development`. When the branch tracks `.env`, wtc's values are in `.env.local`, which compose does not read: plain `docker compose` misses the stack there, so use `wtc compose`. `wtc compose` works in every case.
64
64
  - **Port names.** A port written `${VAR:-8000}:8000` is `VAR`. A hardcoded one is `WTC_<SERVICE>_PORT` (`WTC_WEB_PORT`; further ports `WTC_WEB_443_PORT`). Both are in the env file and usable in `envOverrides`.
65
65
  - **Project.** `{repo}-wt-{index}-{branch}`, sanitized (`myapp-wt-1-feature-auth`). Index and project never change; removing a worktree never renumbers the others. A deleted worktree shows as `(removed)` until `wtc prune`.
66
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worktree-compose",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Zero-config Docker Compose isolation for git worktrees",
5
5
  "mcpName": "io.github.mostafasudo/worktree-compose",
6
6
  "type": "module",