Refactor: rework tracer

This commit is contained in:
SukkaW
2024-06-08 18:02:39 +08:00
parent f5863d82d1
commit 9a0113bf69
23 changed files with 51 additions and 142 deletions

View File

@@ -18,7 +18,7 @@ const folderAndFilesToBeDeployed = [
'LICENSE'
];
export const buildPublic = task(import.meta.path, async (span) => {
export const buildPublic = task(import.meta.main, import.meta.path)(async (span) => {
await span
.traceChild('copy public files')
.traceAsyncFn(async () => {
@@ -45,10 +45,6 @@ export const buildPublic = task(import.meta.path, async (span) => {
return Bun.write(path.join(publicPath, 'index.html'), html);
});
if (import.meta.main) {
buildPublic();
}
const priorityOrder: Record<'default' | string & {}, number> = {
domainset: 1,
non_ip: 2,