Skip to content

Commit

Permalink
fix: overwrite get-bonux tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jan 24, 2024
1 parent fc1b2e0 commit 7c994bc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/get-bonus/src/toranoana/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Toranoana extends Provider {
}

async detail(url: string): Promise<Detail | undefined> {
const html: string = await $fetch(url);
const html: string = await ofetch(url);
const dom = new JSDOM(html);
const doc = dom.window.document;

Expand Down
22 changes: 22 additions & 0 deletions packages/get-bonus/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"noEmit": true,
"target": "ESNext",
"module": "ESNext",
"lib": [
"ESNext",
"DOM"
],
"moduleResolution": "Node",
"esModuleInterop": true,
"strict": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true
},
"exclude": [
"node_modules"
]
}

0 comments on commit 7c994bc

Please sign in to comment.