File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
import { AsyncLocalStorage } from "node:async_hooks" ;
6
6
import { readFileSync } from "node:fs" ;
7
7
import { dirname , join , parse } from "node:path" ;
8
+ import * as process from "node:process" ;
8
9
9
10
import { AUTOMETRICS_DEFAULT_SERVICE_NAME } from "./constants.ts" ;
10
11
import { getGitRepositoryUrl , getPackageStringField } from "./platformUtils.ts" ;
@@ -118,7 +119,7 @@ export function getALSInstance() {
118
119
* @internal
119
120
*/
120
121
export function isRootPath ( pathToCheck : string ) : boolean {
121
- return pathToCheck == parse ( getCwd ( ) ) . root ;
122
+ return pathToCheck === parse ( getCwd ( ) ) . root ;
122
123
}
123
124
124
125
function detectPackageName ( ) : string | undefined {
@@ -142,7 +143,7 @@ function detectRepositoryUrl(): string | undefined {
142
143
} catch { }
143
144
}
144
145
145
- function readClosest ( path : string ) : Uint8Array {
146
+ export function readClosest ( path : string ) : Uint8Array {
146
147
let basePath = getCwd ( ) ;
147
148
while ( basePath . length > 0 ) {
148
149
try {
You can’t perform that action at this time.
0 commit comments