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:
parent
5acd7ef8cb
commit
1fdd28b2b3
5 changed files with 5 additions and 14 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -40,10 +40,6 @@ jobs:
|
||||||
- name: Prepack
|
- name: Prepack
|
||||||
run: pnpm 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
|
- name: Lint
|
||||||
run: pnpm ci:lint
|
run: pnpm ci:lint
|
||||||
|
|
||||||
|
|
4
.github/workflows/upload-annotations.yml
vendored
4
.github/workflows/upload-annotations.yml
vendored
|
@ -29,10 +29,6 @@ jobs:
|
||||||
- name: Prepack
|
- name: Prepack
|
||||||
run: pnpm 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
|
- name: Lint with Report
|
||||||
run: pnpm -r --parallel lint:report && node .scripts/merge-eslint-reports.js
|
run: pnpm -r --parallel lint:report && node .scripts/merge-eslint-reports.js
|
||||||
|
|
||||||
|
|
|
@ -52,10 +52,6 @@ if (taggedPackages.length === 0) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
execSync('pnpm prepack');
|
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('pnpm -r publish');
|
||||||
execSync('git push --follow-tags');
|
execSync('git push --follow-tags');
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
"lint:report": "pnpm lint --format json --output-file report.json",
|
"lint:report": "pnpm lint --format json --output-file report.json",
|
||||||
"test": "vitest src",
|
"test": "vitest src",
|
||||||
"test:ci": "pnpm run test --silent --coverage",
|
"test:ci": "pnpm run test --silent --coverage",
|
||||||
"prepublishOnly": "pnpm build"
|
"prepublishOnly": "pnpm build",
|
||||||
|
"prepack": "pnpm build"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^20.9.0"
|
"node": "^20.9.0"
|
||||||
|
|
|
@ -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.
|
* 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 sync = async () => {
|
||||||
const packagesDirectory = './';
|
const packagesDirectory = './';
|
||||||
|
|
Loading…
Reference in a new issue