The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Add typescript to danger (#2723)
Félix Malfaite2e871ca3259
diff --git a/packages/twenty-utils/dangerfile.ts b/packages/twenty-utils/dangerfile.tsindex ac6b0d41ad1..17ab6fc2e5c 100644--- a/packages/twenty-utils/dangerfile.ts+++ b/packages/twenty-utils/dangerfile.ts@@ -30,9 +30,9 @@ if (envChanged && !envDocsChanged) {}// CLA alert if first time contributor-if (- danger.github.pr.author_association === "FIRST_TIME_CONTRIBUTOR" ||- danger.github.pr.author_association === "NONE"+if (danger.github && danger.github.pr &&+ (danger.github.pr.author_association === "FIRST_TIME_CONTRIBUTOR" ||+ danger.github.pr.author_association === "NONE")) {markdown(getMdSection('CLA', `Hello there and welcome to our project!diff --git a/packages/twenty-utils/package.json b/packages/twenty-utils/package.jsonindex 40c719b67cf..1e1bf0cabfe 100644--- a/packages/twenty-utils/package.json+++ b/packages/twenty-utils/package.json@@ -6,7 +6,8 @@},"dependencies": {"danger-plugin-todos": "^1.3.1",- "semver": "^7.5.4"+ "semver": "^7.5.4",+ "typescript": "^5.3.2"},"devDependencies": {"danger": "^11.3.0"diff --git a/packages/twenty-utils/yarn.lock b/packages/twenty-utils/yarn.lockindex 5f1ace6a72f..d720151e920 100644--- a/packages/twenty-utils/yarn.lock+++ b/packages/twenty-utils/yarn.lock@@ -1051,6 +1051,11 @@ tr46@~0.0.3:resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==+typescript@^5.3.2:+ version "5.3.2"+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43"+ integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ==+undici-types@~5.26.4:version "5.26.5"resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"