Skip to content

Commit

Permalink
[AUTO] Update generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
sersoft-bot committed Sep 4, 2024
1 parent 66a096f commit 5908fd7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ function docCFlags(options, useSPMPlugin) {
args.push('--transform-for-static-hosting');
if (options.enableInheritedDocs)
args.push('--enable-inherited-docs');
if (options.sourceRepository?.checkoutPath)
args.push('--checkout-path', options.sourceRepository.checkoutPath);
if (options.sourceRepository?.service) {
args.push('--source-service', options.sourceRepository.service.type);
args.push('--source-service-base-url', options.sourceRepository.service.baseUrl);
}
if (options.bundleVersion)
args.push('--bundle-version', options.bundleVersion);
if (options.hostingBasePath)
Expand Down Expand Up @@ -100,6 +106,9 @@ async function main() {
const packageVersion = core.getInput('package-version');
const enableIndexBuilding = core.getBooleanInput('enable-index-building', { required: true });
const enableInheritedDocs = core.getBooleanInput('enable-inherited-docs', { required: true });
const checkoutPath = core.getInput('checkout-path');
const repoService = core.getInput('repository-service');
const repoBaseUrl = core.getInput('repository-base-url');
const transformForStaticHosting = core.getBooleanInput('transform-for-static-hosting', { required: true });
const hostingBasePath = core.getInput('hosting-base-path');
const outputDir = core.getInput('output');
Expand Down Expand Up @@ -127,6 +136,13 @@ async function main() {
enableIndexBuilding: enableIndexBuilding,
transformForStaticHosting: transformForStaticHosting,
enableInheritedDocs: enableInheritedDocs,
sourceRepository: checkoutPath || repoService || repoBaseUrl ? {
checkoutPath: nonEmpty(checkoutPath),
service: repoService && repoBaseUrl ? {
type: repoService,
baseUrl: repoBaseUrl,
} : null,
} : null,
bundleVersion: nonEmpty(packageVersion),
hostingBasePath: nonEmpty(hostingBasePath),
outputPath: mapNonNull(nonEmpty(outputDir), path_1.default.resolve),
Expand Down

0 comments on commit 5908fd7

Please sign in to comment.