Skip to content

Commit 22749cf

Browse files
committed
chore: build
1 parent b28c7c6 commit 22749cf

File tree

4 files changed

+68
-40
lines changed

4 files changed

+68
-40
lines changed

dist/index.js

Lines changed: 53 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/monorepo/handleFlarumMonorepo.ts

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,11 @@ export async function handleFlarumMonorepo(): Promise<boolean> {
8383
await core.group('Pre-build scripts', async () => {
8484
await Promise.all(
8585
filteredRepositories.map((repository) =>
86-
runCiJobs(
87-
repository.pathToDir,
88-
{
89-
postBuildChecks: false,
90-
commit: false,
91-
packageName: repository.name
92-
}
93-
)
86+
runCiJobs(repository.pathToDir, {
87+
postBuildChecks: false,
88+
commit: false,
89+
packageName: repository.name,
90+
})
9491
)
9592
);
9693
});
@@ -99,16 +96,13 @@ export async function handleFlarumMonorepo(): Promise<boolean> {
9996
await core.group('Post-build scripts', async () => {
10097
await Promise.all(
10198
filteredRepositories.map((repository) =>
102-
runCiJobs(
103-
repository.pathToDir,
104-
{
105-
prepare: false,
106-
preBuildChecks: false,
107-
build: false,
108-
commit: false,
109-
packageName: repository.name
110-
}
111-
)
99+
runCiJobs(repository.pathToDir, {
100+
prepare: false,
101+
preBuildChecks: false,
102+
build: false,
103+
commit: false,
104+
packageName: repository.name,
105+
})
112106
)
113107
);
114108
});

src/runCiJobs.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,8 @@ type RunOptions = {
2828
* Pass a custom path as the first parameter to run the CI jobs for a specific
2929
* subdirectory of the repository (useful for monorepo).
3030
*/
31-
export default async function runCiJobs(
32-
path = './',
33-
options: RunOptions = {}
34-
): Promise<void> {
35-
const {
36-
prepare = true,
37-
preBuildChecks = true,
38-
build = true,
39-
postBuildChecks = true,
40-
commit = true,
41-
packageName
42-
} = options;
31+
export default async function runCiJobs(path = './', options: RunOptions = {}): Promise<void> {
32+
const { prepare = true, preBuildChecks = true, build = true, postBuildChecks = true, commit = true, packageName } = options;
4333

4434
log(`-- [${packageName || '-'}] Beginning CI jobs...`);
4535
debugLog(`** [${packageName || '-'}] Running CI jobs in \`${path}\``);

0 commit comments

Comments
 (0)