Skip to content

Commit

Permalink
fix test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aeworxet committed Aug 3, 2024
1 parent fb4ccdb commit db9d116
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,9 @@ export const resolve = async (files: string | string[], options: any) => {
for (const file of files) {
const prevDir = process.cwd();

let filePath: any = file.split(path.sep);

if (filePath.length > 1) {
filePath.pop();
filePath = filePath.join(path.sep);
} else {
filePath = './';
}
let filePath: any = file.split('/');
filePath.pop();
filePath = filePath.join('/');

let readFile: any = readFileSync(file, 'utf-8'); // eslint-disable-line
readFile = toJS(readFile);
Expand Down

0 comments on commit db9d116

Please sign in to comment.