Skip to content

Commit

Permalink
chore(pkg): auto sync tsconfig references (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored Sep 27, 2024
1 parent 54066f1 commit 1fb1d94
Show file tree
Hide file tree
Showing 29 changed files with 289 additions and 102 deletions.
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- any-glob-to-any-file: "packages/~/*/api/**/*"
":lipstick: ui":
- changed-files:
- any-glob-to-any-file:
- any-glob-to-any-file:
- "packages/~/app/ui**/*"
- "packages/~/*/ui/**/*"
":memo: documentation":
Expand Down
40 changes: 14 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,78 +1,66 @@


## [2024.9.7](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.6...2024.9.7) (2024-09-25)


### Bug Fixes

* **users:** sort by id for same created at date ([#528](https://github.com/numerique-gouv/hyyypertool/issues/528)) ([4c09935](https://github.com/numerique-gouv/hyyypertool/commit/4c099350d09e5fdd76af92723f10c67ceaa398ad))

- **users:** sort by id for same created at date ([#528](https://github.com/numerique-gouv/hyyypertool/issues/528)) ([4c09935](https://github.com/numerique-gouv/hyyypertool/commit/4c099350d09e5fdd76af92723f10c67ceaa398ad))

### Features

* **organisation:** fold organization members by default ([#539](https://github.com/numerique-gouv/hyyypertool/issues/539)) ([d8418aa](https://github.com/numerique-gouv/hyyypertool/commit/d8418aa1255c40fc9b136c048586b23f29a4e8b6))
* **organisation:** share organization info from moderation ([#500](https://github.com/numerique-gouv/hyyypertool/issues/500)) ([92037e7](https://github.com/numerique-gouv/hyyypertool/commit/92037e7794c35a6f351baca9cee3f9779255bb8a)), closes [#459](https://github.com/numerique-gouv/hyyypertool/issues/459)
- **organisation:** fold organization members by default ([#539](https://github.com/numerique-gouv/hyyypertool/issues/539)) ([d8418aa](https://github.com/numerique-gouv/hyyypertool/commit/d8418aa1255c40fc9b136c048586b23f29a4e8b6))
- **organisation:** share organization info from moderation ([#500](https://github.com/numerique-gouv/hyyypertool/issues/500)) ([92037e7](https://github.com/numerique-gouv/hyyypertool/commit/92037e7794c35a6f351baca9cee3f9779255bb8a)), closes [#459](https://github.com/numerique-gouv/hyyypertool/issues/459)

## [2024.9.6](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.5...2024.9.6) (2024-09-17)


### Bug Fixes

* **icon:** display icons from dsfr 🤓 ([#526](https://github.com/numerique-gouv/hyyypertool/issues/526)) ([77f5c31](https://github.com/numerique-gouv/hyyypertool/commit/77f5c31c9beed94ab410fe6ff389385782850e9f))
- **icon:** display icons from dsfr 🤓 ([#526](https://github.com/numerique-gouv/hyyypertool/issues/526)) ([77f5c31](https://github.com/numerique-gouv/hyyypertool/commit/77f5c31c9beed94ab410fe6ff389385782850e9f))

## [2024.9.5](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.4...2024.9.5) (2024-09-17)


### Features

* **moderation:** auto mark as resolved ([#525](https://github.com/numerique-gouv/hyyypertool/issues/525)) ([1d6301e](https://github.com/numerique-gouv/hyyypertool/commit/1d6301ee5fbebadb575fb8b3fb244c0f8181ff0f))
- **moderation:** auto mark as resolved ([#525](https://github.com/numerique-gouv/hyyypertool/issues/525)) ([1d6301e](https://github.com/numerique-gouv/hyyypertool/commit/1d6301ee5fbebadb575fb8b3fb244c0f8181ff0f))

## [2024.9.4](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.3...2024.9.4) (2024-09-12)

## [2024.9.3](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.2...2024.9.3) (2024-09-12)


### Features

* **email:** add invalid_job template ([93ca782](https://github.com/numerique-gouv/hyyypertool/commit/93ca782093fcdb2f05fa9e22a840a5daeb802806))
- **email:** add invalid_job template ([93ca782](https://github.com/numerique-gouv/hyyypertool/commit/93ca782093fcdb2f05fa9e22a840a5daeb802806))

## [2024.9.2](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.1...2024.9.2) (2024-09-10)


### Bug Fixes

* **organization:** retrict user organization field select query ([#512](https://github.com/numerique-gouv/hyyypertool/issues/512)) ([83ad426](https://github.com/numerique-gouv/hyyypertool/commit/83ad426bc9234d6f16308cb8e674eb4518811169))
- **organization:** retrict user organization field select query ([#512](https://github.com/numerique-gouv/hyyypertool/issues/512)) ([83ad426](https://github.com/numerique-gouv/hyyypertool/commit/83ad426bc9234d6f16308cb8e674eb4518811169))

## [2024.9.1](https://github.com/numerique-gouv/hyyypertool/compare/2024.9.0...2024.9.1) (2024-09-09)


### Bug Fixes

* **organization:** retrict user field select query ([#502](https://github.com/numerique-gouv/hyyypertool/issues/502)) ([4f9d81a](https://github.com/numerique-gouv/hyyypertool/commit/4f9d81a9256e5899b1606df76ca2588bbb89a7bd))
- **organization:** retrict user field select query ([#502](https://github.com/numerique-gouv/hyyypertool/issues/502)) ([4f9d81a](https://github.com/numerique-gouv/hyyypertool/commit/4f9d81a9256e5899b1606df76ca2588bbb89a7bd))

# [2024.9.0](https://github.com/numerique-gouv/hyyypertool/compare/2024.8.4...2024.9.0) (2024-09-09)


### Reverts

* Revert "chore(deps): bump @happy-dom/global-registrator from 14.12.3 to 15.7.…" (#496) ([faa1ec6](https://github.com/numerique-gouv/hyyypertool/commit/faa1ec640216e15dbc64e94208b4b716e6f56584)), closes [#496](https://github.com/numerique-gouv/hyyypertool/issues/496)
- Revert "chore(deps): bump @happy-dom/global-registrator from 14.12.3 to 15.7.…" (#496) ([faa1ec6](https://github.com/numerique-gouv/hyyypertool/commit/faa1ec640216e15dbc64e94208b4b716e6f56584)), closes [#496](https://github.com/numerique-gouv/hyyypertool/issues/496)

## [2024.8.4](https://github.com/numerique-gouv/hyyypertool/compare/2024.8.3...2024.8.4) (2024-08-29)


### Bug Fixes

* **moderation:** add nickname to new conversatino ([a5337f4](https://github.com/numerique-gouv/hyyypertool/commit/a5337f43f786aed9282f7815ff652ff72c4ce794))
- **moderation:** add nickname to new conversatino ([a5337f4](https://github.com/numerique-gouv/hyyypertool/commit/a5337f43f786aed9282f7815ff652ff72c4ce794))

## [2024.8.3](https://github.com/numerique-gouv/hyyypertool/compare/2024.8.2...2024.8.3) (2024-08-29)


### Features

* **domains:** add copy button next the domain name ([#472](https://github.com/numerique-gouv/hyyypertool/issues/472)) ([f9bb9bb](https://github.com/numerique-gouv/hyyypertool/commit/f9bb9bb40cf8d3be2bd1adb08a9b6900cba58473)), closes [#463](https://github.com/numerique-gouv/hyyypertool/issues/463)
* **domains:** exclude unipersonnelle organizations ([#475](https://github.com/numerique-gouv/hyyypertool/issues/475)) ([f50c6f2](https://github.com/numerique-gouv/hyyypertool/commit/f50c6f2eecaba640b121ffbdec19f226eeb72c76)), closes [#457](https://github.com/numerique-gouv/hyyypertool/issues/457)
* **domains:** order by member_count ([#474](https://github.com/numerique-gouv/hyyypertool/issues/474)) ([08d7f8b](https://github.com/numerique-gouv/hyyypertool/commit/08d7f8b905ab225f51fdb1c26a4ef5654ee97946))
* **moderation:** support crisp tickets ([#485](https://github.com/numerique-gouv/hyyypertool/issues/485)) ([9dfd604](https://github.com/numerique-gouv/hyyypertool/commit/9dfd604a4b6e9a4042316ee10ce5d2fdcedf20fe))
- **domains:** add copy button next the domain name ([#472](https://github.com/numerique-gouv/hyyypertool/issues/472)) ([f9bb9bb](https://github.com/numerique-gouv/hyyypertool/commit/f9bb9bb40cf8d3be2bd1adb08a9b6900cba58473)), closes [#463](https://github.com/numerique-gouv/hyyypertool/issues/463)
- **domains:** exclude unipersonnelle organizations ([#475](https://github.com/numerique-gouv/hyyypertool/issues/475)) ([f50c6f2](https://github.com/numerique-gouv/hyyypertool/commit/f50c6f2eecaba640b121ffbdec19f226eeb72c76)), closes [#457](https://github.com/numerique-gouv/hyyypertool/issues/457)
- **domains:** order by member_count ([#474](https://github.com/numerique-gouv/hyyypertool/issues/474)) ([08d7f8b](https://github.com/numerique-gouv/hyyypertool/commit/08d7f8b905ab225f51fdb1c26a4ef5654ee97946))
- **moderation:** support crisp tickets ([#485](https://github.com/numerique-gouv/hyyypertool/issues/485)) ([9dfd604](https://github.com/numerique-gouv/hyyypertool/commit/9dfd604a4b6e9a4042316ee10ce5d2fdcedf20fe))

## [2024.8.2](https://github.com/numerique-gouv/hyyypertool/compare/2024.8.1...2024.8.2) (2024-08-21)

Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"format": "bun x prettier --check .",
"format:fix": "bun x prettier --write .",
"format:pkg": "bun x sort-package-json ./package.json ./packages/~/*/*/package.json ./e2e/package.json",
"format:tsconfig": "bun x @monorepo-utils/workspaces-to-typescript-project-references && bun run format:fix",
"postadd": "bun run format:tsconfig",
"renovate": "bun x npm-check-updates --packageManager bun --interactive --upgrade --deep",
"start": "tsx bin/src/index.ts",
"studio:moncomptepro": "bun run database:moncomptepro:run studio",
Expand Down
37 changes: 27 additions & 10 deletions packages/~/app/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,32 @@
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [
{ "path": "../../auth/api/tsconfig.json" },
{ "path": "../../infra/moncomptepro/database/tsconfig.json" },
{ "path": "../../moderations/api/tsconfig.json" },
{ "path": "../../organizations/api/tsconfig.json" },
{ "path": "../../proxy/api/tsconfig.json" },
{ "path": "../../users/api/tsconfig.json" },
{ "path": "../../welcome/api/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../layout/tsconfig.json" },
{ "path": "../middleware/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../layout"
},
{
"path": "../sentry"
},
{
"path": "../../auth/api"
},
{
"path": "../../moderations/api"
},
{
"path": "../../organizations/api"
},
{
"path": "../../proxy/api"
},
{
"path": "../../users/api"
},
{
"path": "../../welcome/api"
}
]
}
12 changes: 9 additions & 3 deletions packages/~/app/layout/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
},
"extends": "@~/config.typescript/tsx/tsconfig.json",
"references": [
{ "path": "../core/tsconfig.json" },
{ "path": "../middleware/tsconfig.json" },
{ "path": "../urls/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../middleware"
},
{
"path": "../urls"
}
]
}
23 changes: 18 additions & 5 deletions packages/~/app/middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [
{ "path": "../../infra/moncomptepro/database/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../sentry/tsconfig.json" },
{ "path": "../ui/tsconfig.json" },
{ "path": "../urls/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../sentry"
},
{
"path": "../ui"
},
{
"path": "../urls"
},
{
"path": "../../infra/moncomptepro/database"
},
{
"path": "../../infra/moncomptepro/lib"
}
]
}
2 changes: 1 addition & 1 deletion packages/~/app/sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"format": "prettier --write src/**/*.ts"
},
"dependencies": {
"@~/app.core": "workspace:*",
"@sentry/node": "8.31.0",
"@sentry/profiling-node": "8.31.0",
"@~/app.core": "workspace:*",
"consola": "3.2.3",
"hono": "4.6.3"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/~/app/sentry/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [{ "path": "../core/tsconfig.json" }]
"references": [
{
"path": "../core"
}
]
}
15 changes: 12 additions & 3 deletions packages/~/app/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@
},
"extends": "@~/config.typescript/tsx/tsconfig.json",
"references": [
{ "path": "../../config/happydom/tsconfig.json" },
{ "path": "../core/tsconfig.json" },
{ "path": "../urls/tsconfig.json" }
{
"path": "../core"
},
{
"path": "../urls"
},
{
"path": "../../../hono-slotify"
},
{
"path": "../../config/happydom"
}
]
}
12 changes: 9 additions & 3 deletions packages/~/auth/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
},
"extends": "@~/config.typescript/api/tsconfig.json",
"references": [
{ "path": "../../app/core/tsconfig.json" },
{ "path": "../../app/middleware/tsconfig.json" },
{ "path": "../../app/urls/tsconfig.json" }
{
"path": "../../app/core"
},
{
"path": "../../app/middleware"
},
{
"path": "../../app/urls"
}
]
}
7 changes: 6 additions & 1 deletion packages/~/infra/crisp/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json"
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [
{
"path": "../../../app/core"
}
]
}
6 changes: 5 additions & 1 deletion packages/~/infra/crisp/middleware/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [{ "path": "../lib/tsconfig.json" }]
"references": [
{
"path": "../lib"
}
]
}
6 changes: 5 additions & 1 deletion packages/~/infra/crisp/ui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/tsx/tsconfig.json",
"references": [{ "path": "../lib/tsconfig.json" }]
"references": [
{
"path": "../lib"
}
]
}
9 changes: 8 additions & 1 deletion packages/~/infra/moncomptepro/database/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,12 @@
"types": ["pg"]
},
"extends": "@~/config.typescript/base/tsconfig.json",
"references": [{ "path": "../../../app/core/tsconfig.json" }]
"references": [
{
"path": "../../../app/core"
},
{
"path": "../lib"
}
]
}
7 changes: 6 additions & 1 deletion packages/~/infra/moncomptepro/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json"
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [
{
"path": "../../../app/core"
}
]
}
10 changes: 9 additions & 1 deletion packages/~/infra/zammad/api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@
"noEmit": false,
"outDir": "./node_modules/.cache/tsc",
"types": ["bun-types"]
}
},
"references": [
{
"path": "../../../app/core"
},
{
"path": "../lib"
}
]
}
7 changes: 6 additions & 1 deletion packages/~/infra/zammad/lib/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"compilerOptions": {
"outDir": "./node_modules/.cache/tsc"
},
"extends": "@~/config.typescript/bun/tsconfig.json"
"extends": "@~/config.typescript/bun/tsconfig.json",
"references": [
{
"path": "../../../app/core"
}
]
}
4 changes: 2 additions & 2 deletions packages/~/moderations/api/src/:id/Member_Invalid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import * as already_signed from "./responses/already_signed";
import * as chorus_pro_error from "./responses/chorus_pro_error";
import * as contractors from "./responses/contractors";
import * as first_last_name from "./responses/first_last_name";
import * as invalid_job from "./responses/invalid_job";
import * as invalid_name_job from "./responses/invalid_name_job";
import * as link_with_eduction_gouv_fr from "./responses/link_with_eduction_gouv_fr";
import * as link_with_organization from "./responses/link_with_organization";
import * as mobilic from "./responses/mobilic";
import * as use_official_email from "./responses/use_official_email";
import * as use_pro_email from "./responses/use_pro_email";
import * as invalid_job from "./responses/invalid_job";

//

Expand All @@ -36,7 +36,7 @@ const reponse_templates = [
accountant,
invalid_name_job,
chorus_pro_error,
invalid_job
invalid_job,
];

//
Expand Down
Loading

0 comments on commit 1fb1d94

Please sign in to comment.