feat: remove unused files
This commit is contained in:
BIN
public/i.jpg
BIN
public/i.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 381 KiB |
@@ -1,21 +0,0 @@
|
|||||||
import { join } from 'node:path';
|
|
||||||
|
|
||||||
function resolveFilePath(path: string) {
|
|
||||||
if (path.startsWith('/')) {
|
|
||||||
return resolveFilePathPublic(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
return resolveFilePathInternal(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
function resolveFilePathPublic(path: string) {
|
|
||||||
return join(process.cwd(), path);
|
|
||||||
}
|
|
||||||
|
|
||||||
function resolveFilePathInternal(path: string) {
|
|
||||||
const normalizePath = path.startsWith('@') ? path.replace('@', '') : path;
|
|
||||||
|
|
||||||
return join(process.cwd(), 'src/', normalizePath);
|
|
||||||
}
|
|
||||||
|
|
||||||
export { resolveFilePath, resolveFilePathPublic, resolveFilePathInternal };
|
|
||||||
Reference in New Issue
Block a user