We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae0d51 commit 0e73af6Copy full SHA for 0e73af6
src/utils/package-environment.ts
@@ -199,7 +199,10 @@ export async function detectPackageEnvironment({
199
let lockName = lockPath ? path.basename(lockPath) : undefined
200
const isHiddenLockFile = lockName === HIDDEN_PACKAGE_LOCK
201
const pkgJsonPath = lockPath
202
- ? path.resolve(lockPath, `${isHiddenLockFile ? '../' : ''}../${PACKAGE_JSON}`)
+ ? path.resolve(
203
+ lockPath,
204
+ `${isHiddenLockFile ? '../' : ''}../${PACKAGE_JSON}`
205
+ )
206
: await findUp(PACKAGE_JSON, { cwd })
207
const pkgPath =
208
pkgJsonPath && existsSync(pkgJsonPath)
0 commit comments