We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abef63b commit 189356bCopy full SHA for 189356b
packages/core/src/utils/helper.ts
@@ -123,8 +123,11 @@ export const readPackageJson = (rootPath: string): undefined | PkgJson => {
123
}
124
};
125
126
+export function getAbsolutePath(base: string, filepath: string): string {
127
+ return path.isAbsolute(filepath) ? filepath : path.join(base, filepath);
128
+}
129
+
130
export const isObject = (obj: unknown): obj is Record<string, any> =>
131
Object.prototype.toString.call(obj) === '[object Object]';
132
133
export { color, calcLongestCommonPath };
-export * from './helpers';
packages/core/src/utils/helpers/index.ts
packages/core/src/utils/helpers/path.ts
0 commit comments