@oh-my-pi/pi-utils 14.5.9 → 14.5.11
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/package.json +2 -2
- package/src/dirs.ts +5 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-utils",
|
|
4
|
-
"version": "14.5.
|
|
4
|
+
"version": "14.5.11",
|
|
5
5
|
"description": "Shared utilities for pi packages",
|
|
6
6
|
"homepage": "https://github.com/can1357/oh-my-pi",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/bun": "^1.3",
|
|
41
|
-
"@oh-my-pi/pi-natives": "14.5.
|
|
41
|
+
"@oh-my-pi/pi-natives": "14.5.11"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"bun": ">=1.3.7"
|
package/src/dirs.ts
CHANGED
|
@@ -261,6 +261,11 @@ export function getRemoteDir(): string {
|
|
|
261
261
|
return dirs.rootSubdir("remote", "data");
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
+
/** Get the PR worktrees directory (~/.omp/wt). */
|
|
265
|
+
export function getWorktreesDir(): string {
|
|
266
|
+
return dirs.rootSubdir("wt", "data");
|
|
267
|
+
}
|
|
268
|
+
|
|
264
269
|
/** Get the SSH control socket directory (~/.omp/ssh-control). */
|
|
265
270
|
export function getSshControlDir(): string {
|
|
266
271
|
return dirs.rootSubdir("ssh-control", "state");
|