0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/connectors
2024-01-29 21:33:12 +08:00
..
connector-alipay-native fix(connector): update connector readme images URL (#5069) 2023-12-20 13:45:33 +08:00
connector-alipay-web chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-aliyun-dm feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-aliyun-sms feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-apple fix(connector): update connector readme images URL (#5069) 2023-12-20 13:45:33 +08:00
connector-aws-ses feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-azuread chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-discord chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-facebook chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-feishu-web chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-github chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-google chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-kakao chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-logto-email feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-logto-sms feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-logto-social-demo chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-mailgun feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-mock-email refactor!: update mock connector file paths 2024-01-29 21:33:12 +08:00
connector-mock-email-alternative refactor!: update mock connector file paths 2024-01-29 21:33:12 +08:00
connector-mock-sms refactor!: update mock connector file paths 2024-01-29 21:33:12 +08:00
connector-mock-social chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-naver chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-oauth2 chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-oidc chore(connector): remove unused code (#5200) 2024-01-08 14:45:35 +08:00
connector-saml chore: use Node 20 LTS for engine requirement (#5084) 2023-12-11 09:10:53 +08:00
connector-sendgrid-email feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-smsaero feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-smtp feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-tencent-sms feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-twilio-sms feat: create invitation (#5245) 2024-01-25 19:44:20 +08:00
connector-wechat-native fix(connector): update connector readme images URL (#5069) 2023-12-20 13:45:33 +08:00
connector-wechat-web fix(connector): update connector readme images URL (#5069) 2023-12-20 13:45:33 +08:00
templates feat(core): put invitation status 2024-01-29 19:39:27 +08:00
.gitignore refactor: leverage pnpmfile for dependency installation 2023-04-01 20:53:44 +08:00
README.md refactor: leverage pnpmfile for dependency installation 2023-04-01 20:53:44 +08:00

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.