Skip to content

Commit

Permalink
fix: typecheck include
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Jan 29, 2023
1 parent aa692ad commit 11210f0
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"preversion": "pnpm build && pnpm test"
},
"devDependencies": {
"@types/node": "^18.0.0",
"@types/node": "^18.11.18",
"@types/sharedworker": "^0.0.91",
"bumpp": "latest",
"prettier": "latest",
"turbo": "latest",
Expand Down
1 change: 1 addition & 0 deletions packages/vite-plugin-worker/runtime.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/runtime';
17 changes: 17 additions & 0 deletions packages/vite-plugin-worker/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext", "WebWorker"],
"moduleResolution": "Node",
"esModuleInterop": true,
"strict": true,
"strictNullChecks": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true
},
"include": ["./src/**/*.ts"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion playground/tsconfig.worker.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"lib": ["ESNext", "WebWorker"],
"types": ["vite/client", "service-worker"]
"types": ["vite/client"]
},
"include": ["./worker.ts"],
"extends": "./tsconfig.json"
Expand Down
50 changes: 47 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 11210f0

Please sign in to comment.