@sven1103/opencode-worktree-workflow 0.2.0 → 0.3.0
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.
- package/README.md +19 -3
- package/package.json +1 -1
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
## Install in an OpenCode project
|
|
6
6
|
|
|
7
|
-
Add the
|
|
7
|
+
Add the package as a project dependency, following the official docs style:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
{
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@sven1103/opencode-worktree-workflow": "^0.2.0"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then reference the installed package from your OpenCode config:
|
|
8
18
|
|
|
9
19
|
```json
|
|
10
20
|
{
|
|
@@ -13,7 +23,13 @@ Add the plugin package to your project config:
|
|
|
13
23
|
}
|
|
14
24
|
```
|
|
15
25
|
|
|
16
|
-
|
|
26
|
+
Keeping the npm dependency in `package.json` makes the installation more durable even if shared `opencode.json` bundles overwrite plugin entries.
|
|
27
|
+
|
|
28
|
+
If you do not already install dependencies in your project, you can add the package directly with npm:
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
npm install @sven1103/opencode-worktree-workflow
|
|
32
|
+
```
|
|
17
33
|
|
|
18
34
|
## Install slash commands
|
|
19
35
|
|
|
@@ -74,7 +90,7 @@ You can override the defaults in `opencode.json`, `opencode.jsonc`, or `.opencod
|
|
|
74
90
|
"worktreeWorkflow": {
|
|
75
91
|
"branchPrefix": "wt/",
|
|
76
92
|
"remote": "origin",
|
|
77
|
-
"worktreeRoot": "
|
|
93
|
+
"worktreeRoot": ".worktrees/$REPO",
|
|
78
94
|
"cleanupMode": "preview",
|
|
79
95
|
"protectedBranches": ["release"]
|
|
80
96
|
}
|
package/package.json
CHANGED
package/src/index.js
CHANGED