Skip to content

Commit

Permalink
fix: Player build failed due to typedoc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Oct 8, 2024
1 parent 89f4820 commit d77b94d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"scripts": {
"dev": "vite build --watch",
"build": "tsc -b && vite build --emptyOutDir",
"typedoc": "pnpm run build && typedoc"
"typedoc": "pnpm run build && typedoc --tsconfig tsconfig.typedoc.json"
},
"peerDependencies": {
"hls.js": "^1.5.15",
Expand Down
3 changes: 1 addition & 2 deletions packages/player/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["vite.config.ts"],
"files": ["./dist/index.d.ts"]
"include": ["vite.config.ts"]
}
18 changes: 18 additions & 0 deletions packages/player/tsconfig.typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"target": "es2022",
"lib": ["es2023"],
"module": "esnext",
"skipLibCheck": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"isolatedModules": true,
"moduleDetection": "force",
"noEmit": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"files": ["./dist/index.d.ts"]
}

0 comments on commit d77b94d

Please sign in to comment.