Skip to content

Commit f27e9a2

Browse files
committed
fix import issues
1 parent 477a9c4 commit f27e9a2

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
export { scrapeLinktreeAccount } from "@/linktree";
1+
export { scrapeLinktreeAccount } from "./linktree";
22
export {
33
Account,
44
Link,
55
LinktreeResponse,
66
ScrapeLinktreeProfile,
77
SocialLink,
88
Theme,
9-
} from "@/types";
9+
} from "./types";

src/linktree.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as cheerio from "cheerio";
2-
import { LINKTREE_BASE_URL, USER_NOT_FOUND } from "@/constants";
3-
import type { LinktreeResponse, ScrapeLinktreeProfile } from "@/types";
2+
import { LINKTREE_BASE_URL, USER_NOT_FOUND } from "./constants";
3+
import type { LinktreeResponse, ScrapeLinktreeProfile } from "./types";
44

55
export async function scrapeLinktreeAccount(
66
username: string

tsconfig.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"outDir": "./dist",
44
"rootDir": "./src",
55
"baseUrl": "./",
6-
"paths": {
7-
"@/*": ["src/*"]
8-
},
96
"lib": ["ESNext"],
107
"module": "esnext",
118
"target": "esnext",
@@ -21,11 +18,7 @@
2118
"allowSyntheticDefaultImports": true,
2219
"forceConsistentCasingInFileNames": true,
2320
"allowJs": true,
24-
"types": [
25-
"bun-types"
26-
]
21+
"types": ["bun-types"]
2722
},
28-
"include": [
29-
"src/**/*.ts"
30-
]
31-
}
23+
"include": ["src/**/*.ts"]
24+
}

0 commit comments

Comments
 (0)