0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00
logto/packages/connectors
simeng-li 115854188a
feat(core,schemas,toolkit): get i18n email template in email connector
add logic to get custom i18n email templates in email connector `sendMessage` method.
2025-02-17 11:17:15 +08:00
..
connector-alipay-native chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-alipay-web chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-aliyun-dm chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-aliyun-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-apple chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-aws-ses chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-azuread chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-dingtalk-web chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-discord chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-facebook chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-feishu-web chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-gatewayapi-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-github chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-gitlab chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-google chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-http-email chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-huggingface chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-kakao chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-kook chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-logto-email chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-logto-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-logto-social-demo chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-mailgun chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-mock-email feat(core,schemas,toolkit): get i18n email template in email connector 2025-02-17 11:17:15 +08:00
connector-mock-email-alternative chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-mock-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-mock-social chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-naver chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-oauth2 chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-oidc chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-patreon chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-postmark chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-saml chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-sendgrid-email chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-smsaero chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-smtp chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-tencent-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-twilio-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-vonage-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-wechat-native chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-wechat-web chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-wecom chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-xiaomi chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
connector-yunpian-sms chore: bump dependencies for security update (#7035) 2025-02-13 16:35:19 +08:00
templates ci: add check job 2024-07-28 13:55:55 +08:00
.gitignore refactor(connector): use tsup for building 2024-07-28 13:15:09 +08:00
README.md

Logto connectors directory

Template syncing

Since all connectors have a same pattern for package.json, here we leverage several techniques to avoid annoying copy-pastes:

When pnpm i

  • The "pnpm:devPreinstall" script in the project root executes templates/sync-preset.js that:
    • Check every connectors's package.json to see if there's any unexpected keys
    • Sync templates/package.json by REPLACING every template key (except dependency keys) in the current package.json with the value from the template package.json
    • Copies all config files to every connector directory
  • The hook in .pnpmfile.cjs of the project root merges dependency fields for every connector
    • Also we can update arbitrary fields in this hook, we still need to keep non-dependency fields in the connector's package.json since the hook only takes affect during pnpm i.

Caution Workspace dependencies should be defined in connector's package.json (not template) in order to let PNPM correctly resolves the workspace dependency tree;

Add a new custom field

Head to templates/sync-preset.js and update allowedCustomKeys.