Skip to content

Commit 189356b

Browse files
committed
chore: remove unnecessary code
1 parent abef63b commit 189356b

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

packages/core/src/utils/helper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,11 @@ export const readPackageJson = (rootPath: string): undefined | PkgJson => {
123123
}
124124
};
125125

126+
export function getAbsolutePath(base: string, filepath: string): string {
127+
return path.isAbsolute(filepath) ? filepath : path.join(base, filepath);
128+
}
129+
126130
export const isObject = (obj: unknown): obj is Record<string, any> =>
127131
Object.prototype.toString.call(obj) === '[object Object]';
128132

129133
export { color, calcLongestCommonPath };
130-
export * from './helpers';

packages/core/src/utils/helpers/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/core/src/utils/helpers/path.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)