@oh-my-pi/pi-utils 15.10.11 → 15.10.12
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/dist/types/procmgr.d.ts +4 -0
- package/package.json +2 -2
- package/src/procmgr.ts +1 -1
package/dist/types/procmgr.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export interface ShellConfig {
|
|
|
5
5
|
env: Record<string, string>;
|
|
6
6
|
prefix: string | undefined;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* Check if a shell binary is executable.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isExecutable(path: string): boolean;
|
|
8
12
|
/**
|
|
9
13
|
* Resolve a basic shell (bash or sh) as fallback.
|
|
10
14
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/pi-utils",
|
|
4
|
-
"version": "15.10.
|
|
4
|
+
"version": "15.10.12",
|
|
5
5
|
"description": "Shared utilities for pi packages",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"fmt": "biome format --write ."
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oh-my-pi/pi-natives": "15.10.
|
|
34
|
+
"@oh-my-pi/pi-natives": "15.10.12",
|
|
35
35
|
"beautiful-mermaid": "^1.1.3",
|
|
36
36
|
"handlebars": "^4.7.9",
|
|
37
37
|
"winston": "^3.19.0",
|
package/src/procmgr.ts
CHANGED
|
@@ -16,7 +16,7 @@ let cachedShellConfig: ShellConfig | null = null;
|
|
|
16
16
|
/**
|
|
17
17
|
* Check if a shell binary is executable.
|
|
18
18
|
*/
|
|
19
|
-
function isExecutable(path: string): boolean {
|
|
19
|
+
export function isExecutable(path: string): boolean {
|
|
20
20
|
try {
|
|
21
21
|
fs.accessSync(path, fs.constants.X_OK);
|
|
22
22
|
return true;
|