Skip to content

Commit

Permalink
chore: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
shulaoda committed Aug 13, 2024
1 parent abef63b commit 189356b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion packages/core/src/utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,11 @@ export const readPackageJson = (rootPath: string): undefined | PkgJson => {
}
};

export function getAbsolutePath(base: string, filepath: string): string {
return path.isAbsolute(filepath) ? filepath : path.join(base, filepath);
}

export const isObject = (obj: unknown): obj is Record<string, any> =>
Object.prototype.toString.call(obj) === '[object Object]';

export { color, calcLongestCommonPath };
export * from './helpers';
1 change: 0 additions & 1 deletion packages/core/src/utils/helpers/index.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/core/src/utils/helpers/path.ts

This file was deleted.

0 comments on commit 189356b

Please sign in to comment.