-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ts): upgrade monorepo to TypeScript 6.0.3 #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| diff --git a/dist/classes/directoryHelper.js b/dist/classes/directoryHelper.js | ||
| index 4558509..bbca3b4 100644 | ||
| --- a/dist/classes/directoryHelper.js | ||
| +++ b/dist/classes/directoryHelper.js | ||
| @@ -23,7 +23,11 @@ class DirectoryHelper { | ||
| if (!this.pathOrDirExists(path)) | ||
| return; | ||
| try { | ||
| - fs_1.default.rmdirSync(path, { recursive: true }); | ||
| + if (typeof fs_1.default.rmSync === 'function') { | ||
| + fs_1.default.rmSync(path, { recursive: true, force: true }); | ||
| + } else { | ||
| + fs_1.default.rmdirSync(path, { recursive: true }); | ||
| + } | ||
| } | ||
| catch (err) { | ||
| if (err instanceof Error) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,6 @@ | |
| }, | ||
| "devDependencies": { | ||
| "@types/react": "^19.0.0", | ||
| "typescript": "^5.0.0" | ||
| "typescript": "6.0.3" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,6 @@ | |
| "dotenv": "16.6.1", | ||
| "postcss": "8.5.6", | ||
| "tailwindcss": "3.4.1", | ||
| "typescript": "5.9.3" | ||
| "typescript": "6.0.3" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,6 @@ | |
| }, | ||
| "devDependencies": { | ||
| "@tailwindcss/typography": "0.5.4", | ||
| "typescript": "5.9.3" | ||
| "typescript": "6.0.3" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,6 @@ | |
| }, | ||
| "devDependencies": { | ||
| "@calcom/tsconfig": "workspace:*", | ||
| "typescript": "5.9.3" | ||
| "typescript": "6.0.3" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| import type { PERMISSIONS } from "@calcom/platform-constants"; | ||
|
|
||
| export type PLATFORM_PERMISSION = (typeof PERMISSIONS)[number]; | ||
| export type { PLATFORM_PERMISSION } from "@calcom/platform-constants"; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -529,8 +529,9 @@ | |
| "outputs": ["lint-results"] | ||
| }, | ||
| "post-install": { | ||
| "cache": false, | ||
| "dependsOn": [], | ||
| "outputs": ["../../node_modules/@prisma/client/**", "../../node_modules/@prisma/admin-client/**"], | ||
| "outputs": ["dist/**", "../../node_modules/@prisma/client/**", "../../node_modules/@prisma/admin-client/**"], | ||
| "inputs": ["./schema.prisma", "./prisma/schema.prisma"], | ||
| "env": ["PRISMA_GENERATE_DATAPROXY"] | ||
|
Comment on lines
+532
to
536
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When |
||
| }, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting
"rootDir": "src"while including"env.d.ts"(which resides at the root, outside ofsrc) can trigger the TypeScript compiler errorTS6059: File '.../env.d.ts' is not under 'rootDir' 'src'. To resolve this cleanly, moveenv.d.tsinto thesrc/directory (e.g.,src/env.d.ts) and update theincludearray to only target thesrcfolder.