Skip to content

Commit

Permalink
Update TSConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
raducristianpopa committed Jan 22, 2024
1 parent 49b059b commit 2d3d74f
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 16 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
!.github
node_modules/
dist
*/dist
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@
"jest-environment-jsdom": "^29.7.0",
"jest-transform-stub": "^2.0.0",
"prettier": "^3.0.3",
"prettier-plugin-tailwindcss": "^0.5.11",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.2"
"ts-node": "^10.9.2",
"typescript": "^5.2.2"
},
"engines": {
"pnpm": "^8.10.5",
Expand Down
1 change: 0 additions & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"postcss": "^8.4.32",
"postcss-loader": "^7.3.3",
"tailwindcss": "^3.4.0",
"typescript": "^5.2.2",
"webpack-cli": "^5.1.4"
},
"engines": {
Expand Down
4 changes: 1 addition & 3 deletions packages/extension/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"noImplicitAny": true,
"composite": true,
"strictNullChecks": true,
"noImplicitThis": true,
"esModuleInterop": true,
Expand All @@ -10,7 +9,6 @@
"allowJs": true,
"jsx": "react",
"sourceMap": true,
"declaration": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"allowUmdGlobalAccess": true,
Expand All @@ -26,6 +24,6 @@
"@/hooks/*": ["./src/hooks/*"]
}
},
"include": ["./src/**/*", "local-signature/**/*", "./jest.config.ts", "./jest.setup.ts"],
"include": ["./src/**/*", "./jest.config.ts", "./jest.setup.ts"],
"exclude": ["dist", "dev", "temp"]
}
3 changes: 1 addition & 2 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"devDependencies": {
"@types/koa": "^2.14.0",
"@types/koa-bodyparser": "^4.3.12",
"tsx": "^4.7.0",
"typescript": "^5.2.2"
"tsx": "^4.7.0"
}
}
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function validateBody(body: any): body is GenerateSignatureRequestBody {

async function validatePath(ctx: Context, next: Koa.Next): Promise<void> {
if (ctx.path !== '/') {
ctx.status = 404;
ctx.status = 403;
} else {
await next();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"target": "ES2020",
"composite": true,
"lib": ["ES2020"],
"module": "commonjs",
"moduleResolution": "Node",
"resolveJsonModule": true,
"allowJs": false,
"rootDir": "./src",
"declarationMap": true,
"sourceMap": true,
"declaration": true,
Expand Down
64 changes: 58 additions & 6 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 2d3d74f

Please sign in to comment.