@oh-my-pi/pi-utils 18.1.19 → 18.1.20

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.
@@ -40,6 +40,8 @@ export declare function normalizeProfileName(profile: string | undefined): strin
40
40
  * {@link normalizeProfileName} (which throws on a syntactically invalid value).
41
41
  */
42
42
  export declare function resolveProfileEnv(omp: string | undefined, pi: string | undefined): string | undefined;
43
+ /** Profile-independent config root (~/.omp), shared by every omp profile. */
44
+ export declare function getBaseConfigRoot(): string;
43
45
  export declare function resolveEquivalentPath(inputPath: string): string;
44
46
  export declare function normalizePathForComparison(inputPath: string): string;
45
47
  export declare function pathIsWithin(root: string, candidate: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-utils",
3
- "version": "18.1.19",
3
+ "version": "18.1.20",
4
4
  "description": "Shared utilities for pi packages",
5
5
  "keywords": [
6
6
  "cli",
@@ -54,7 +54,7 @@
54
54
  "fmt": "oxfmt --no-error-on-unmatched-pattern 'src/**/*.{ts,tsx}' '{test,bench,examples,scripts}/**/*.ts' '*.ts'"
55
55
  },
56
56
  "dependencies": {
57
- "@oh-my-pi/pi-natives": "18.1.19"
57
+ "@oh-my-pi/pi-natives": "18.1.20"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/bun": "^1.3.14"
package/src/dirs.ts CHANGED
@@ -107,7 +107,8 @@ function readProfileFromEnvSafe(): string | undefined {
107
107
  }
108
108
  }
109
109
 
110
- function getBaseConfigRoot(): string {
110
+ /** Profile-independent config root (~/.omp), shared by every omp profile. */
111
+ export function getBaseConfigRoot(): string {
111
112
  return path.join(os.homedir(), getConfigDirName());
112
113
  }
113
114