Skip to content

Commit

Permalink
chore: remove unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonIter committed Aug 13, 2024
1 parent dbdb1ec commit 58a61b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions e2e/scripts/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ export async function getResults(
}

if (!globFolder) continue;
if (!isAbsolute(globFolder)) {
globFolder = join(fixturePath, globFolder);
}

const regex = type === 'dts' ? /\.d.(ts|cts|mts)$/ : /\.(js|cjs|mjs)$/;

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function calcLongestCommonPath(
}

export const readPackageJson = (rootPath: string): undefined | PkgJson => {
const pkgJsonPath = path.join(rootPath, './package.json');
const pkgJsonPath = path.resolve(rootPath, './package.json');

if (!fs.existsSync(pkgJsonPath)) {
logger.warn(`package.json does not exist in the ${rootPath} directory`);
Expand Down

0 comments on commit 58a61b4

Please sign in to comment.