Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Oct 8, 2023
1 parent ef6d7ef commit c654bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/detectors/packagejsondetector.mts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { readFile, stat } from 'node:fs/promises';
import { basename, join, resolve } from 'node:path';
import { dirname, join, resolve } from 'node:path';
import {
type DetectorSync,
type IResource,
Expand Down Expand Up @@ -45,7 +45,7 @@ export class PackageJsonDetector implements DetectorSync {
const locations: string[] = [];
// istanbul ignore next
if (process.argv[1]) {
const dir = basename(process.argv[1]);
const dir = dirname(process.argv[1]);
locations.push(join(dir, 'package.json'), join(dir, '..', 'package.json'));
}

Expand Down

0 comments on commit c654bda

Please sign in to comment.