Skip to content

Commit

Permalink
refactor: rename package to proconnect (#871)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil authored Dec 4, 2024
1 parent 2b75ed2 commit ea29c8d
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .changeset/good-frogs-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gouvfr-lasuite/proconnect.email": minor
"@gouvfr-lasuite/proconnect.core": minor
---

🚚 Renommage des paquets en ProConnect
14 changes: 7 additions & 7 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"watch:ejs": "CHOKIDAR_USEPOLLING=true copy-and-watch --clean --watch \"src/views/**/*.ejs\" src/views/*.ejs build/views/",
"watch:js": "tsc --watch --preserveWatchOutput",
"watch:node": "tsx --watch src/index.ts",
"watch:workspaces:core": "npm run dev --if-present --workspace=@gouvfr-lasuite/moncomptepro.core",
"watch:workspaces:email": "npm run dev --if-present --workspace=@gouvfr-lasuite/moncomptepro.email"
"watch:workspaces:core": "npm run dev --if-present --workspace=@gouvfr-lasuite/proconnect.core",
"watch:workspaces:email": "npm run dev --if-present --workspace=@gouvfr-lasuite/proconnect.email"
},
"prettier": {
"plugins": [
Expand All @@ -48,8 +48,8 @@
"@dotenvx/dotenvx": "^1.19.2",
"@fullhuman/postcss-purgecss": "^6.0.0",
"@gouvfr-lasuite/crisp": "https://github.com/douglasduteil/crisp/releases/download/v1.6.1/douglasduteil-crisp-1.6.1.tgz",
"@gouvfr-lasuite/moncomptepro.core": "workspace:*",
"@gouvfr-lasuite/moncomptepro.email": "workspace:*",
"@gouvfr-lasuite/proconnect.core": "workspace:*",
"@gouvfr-lasuite/proconnect.email": "workspace:*",
"@gouvfr/dsfr": "^1.12.1",
"@kitajs/html": "^4.2.4",
"@kitajs/ts-html-plugin": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@gouvfr-lasuite/moncomptepro.core",
"name": "@gouvfr-lasuite/proconnect.core",
"version": "0.1.0",
"homepage": "https://github.com/numerique-gouv/moncomptepro/tree/master/packages/core#readme",
"bugs": "https://github.com/numerique-gouv/moncomptepro/issues",
Expand Down
4 changes: 2 additions & 2 deletions packages/email/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# @gouvfr-lasuite/moncomptepro.email
# @gouvfr-lasuite/proconnect.email

## Usage

```ts
import { DeleteFreeTotpMail } from "@gouvfr-lasuite/moncomptepro.email";
import { DeleteFreeTotpMail } from "@gouvfr-lasuite/proconnect.email";

const transporter = nodemailer.createTransport({
host: "smtp.example.com",
Expand Down
2 changes: 1 addition & 1 deletion packages/email/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@gouvfr-lasuite/moncomptepro.email",
"name": "@gouvfr-lasuite/proconnect.email",
"version": "0.0.2",
"private": true,
"homepage": "https://github.com/numerique-gouv/moncomptepro/tree/master/packages/email#readme",
Expand Down
2 changes: 1 addition & 1 deletion src/managers/moderation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ModerationProcessed } from "@gouvfr-lasuite/moncomptepro.email";
import { ModerationProcessed } from "@gouvfr-lasuite/proconnect.email";
import { isEmpty } from "lodash-es";
import { MONCOMPTEPRO_HOST } from "../config/env";
import { ForbiddenError, NotFoundError } from "../config/errors";
Expand Down
2 changes: 1 addition & 1 deletion src/managers/organization/join.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Welcome } from "@gouvfr-lasuite/moncomptepro.email";
import { Welcome } from "@gouvfr-lasuite/proconnect.email";
import * as Sentry from "@sentry/node";
import { isEmpty, some } from "lodash-es";
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OfficialContactEmailVerification } from "@gouvfr-lasuite/moncomptepro.email";
import { OfficialContactEmailVerification } from "@gouvfr-lasuite/proconnect.email";
import { isEmpty } from "lodash-es";
import { MONCOMPTEPRO_HOST } from "../../config/env";
import {
Expand Down
4 changes: 2 additions & 2 deletions src/managers/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
UpdatePersonalDataMail,
UpdateTotpApplication,
VerifyEmail,
} from "@gouvfr-lasuite/moncomptepro.email";
} from "@gouvfr-lasuite/proconnect.email";
import { isEmpty } from "lodash-es";
import {
EmailUnavailableError,
Expand All @@ -27,7 +27,7 @@ import {
import { isEmailSafeToSendTransactional } from "../connectors/debounce";
import { sendMail } from "../connectors/mail";

import { getDidYouMeanSuggestion } from "@gouvfr-lasuite/moncomptepro.core/services/suggestion/did-you-mean.js";
import { getDidYouMeanSuggestion } from "@gouvfr-lasuite/proconnect.core/services/suggestion/did-you-mean.js";
import {
MAGIC_LINK_TOKEN_EXPIRATION_DURATION_IN_MINUTES,
MAX_DURATION_BETWEEN_TWO_EMAIL_ADDRESS_VERIFICATION_IN_MINUTES,
Expand Down
2 changes: 1 addition & 1 deletion src/services/email.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//

import { isAFreeDomain } from "@gouvfr-lasuite/moncomptepro.core/services/email/isAFreeDomain.js";
import { isAFreeDomain } from "@gouvfr-lasuite/proconnect.core/services/email/isAFreeDomain.js";
import { parse_host } from "tld-extract";
import {
FEATURE_CONSIDER_ALL_EMAIL_DOMAINS_AS_FREE,
Expand Down

0 comments on commit ea29c8d

Please sign in to comment.