0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: build oauth2 connector on prepack (#5855)

This commit is contained in:
Xiao Yijun 2024-05-13 17:06:04 +08:00 committed by GitHub
parent 5acd7ef8cb
commit 1fdd28b2b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 14 deletions

View file

@ -40,10 +40,6 @@ jobs:
- name: Prepack
run: pnpm prepack
# Build connectors before running lint since some connectors rely on the generated types
- name: Build connectors
run: pnpm connectors build
- name: Lint
run: pnpm ci:lint

View file

@ -29,10 +29,6 @@ jobs:
- name: Prepack
run: pnpm prepack
# Build connectors before running lint since some connectors rely on the generated types
- name: Build connectors
run: pnpm connectors build
- name: Lint with Report
run: pnpm -r --parallel lint:report && node .scripts/merge-eslint-reports.js

View file

@ -52,10 +52,6 @@ if (taggedPackages.length === 0) {
try {
execSync('pnpm prepack');
/**
* Build connectors before publish since some connectors rely on the generated types from oauth2 connector package.
*/
execSync('pnpm connectors build');
execSync('pnpm -r publish');
execSync('git push --follow-tags');
} catch (error) {

View file

@ -33,7 +33,8 @@
"lint:report": "pnpm lint --format json --output-file report.json",
"test": "vitest src",
"test:ci": "pnpm run test --silent --coverage",
"prepublishOnly": "pnpm build"
"prepublishOnly": "pnpm build",
"prepack": "pnpm build"
},
"engines": {
"node": "^20.9.0"

View file

@ -17,8 +17,10 @@ const templateKeys = Object.keys(templateJson);
/**
* An object that contains exceptions for scripts that are allowed to be different from the template.
* Value format: `{ "<connector-name>": ["<script-name>"] }`
* Example: `{ "connector-oauth2": ["prepack"] }`
*/
const scriptExceptions = {};
const scriptExceptions = { 'connector-oauth2': ['prepack'] };
const sync = async () => {
const packagesDirectory = './';