0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/connectors
Gao Sun 3f59461df6
chore(deps): update packges (#5545)
* chore(deps): upgrade puppeteer

* chore: replace plugin

* refactor: fix tests
2024-03-27 10:21:46 +08:00
..
connector-alipay-native feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-alipay-web feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-aliyun-dm release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-aliyun-sms release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-apple feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-aws-ses release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-azuread chore: add exception for connector template 2024-03-19 15:19:41 +08:00
connector-discord feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-facebook feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-feishu-web feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-github feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-google feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-kakao feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-logto-email chore: bump @logto dependencies (#5548) 2024-03-25 18:34:06 +08:00
connector-logto-sms release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-logto-social-demo release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-mailgun release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-mock-email release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-mock-email-alternative release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-mock-sms release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-mock-social feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-naver feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-oauth2 feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-oidc feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-saml release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-sendgrid-email release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-smsaero release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-smtp release: version packages (#5445) 2024-03-01 14:40:25 +08:00
connector-tencent-sms release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-twilio-sms release: version packages (#5068) 2024-02-08 13:18:42 +08:00
connector-wechat-native feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-wechat-web feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
connector-wecom feat: return and store connector raw data 2024-03-19 14:05:42 +08:00
templates chore(deps): update packges (#5545) 2024-03-27 10:21:46 +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.