Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09e8b9f

Browse files
authored
openapi update-files script fix, should be includes plural (#55985)
1 parent 8c63654 commit 09e8b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rest/scripts/update-files.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async function validateInputParameters(): Promise<void> {
236236

237237
// The `--decorate-only` option cannot be used
238238
// with the `--include-deprecated` or `--include-unpublished` options
239-
if ((includeDeprecated || includeUnpublished) && !sourceRepos.include('github')) {
239+
if ((includeDeprecated || includeUnpublished) && !sourceRepos.includes('github')) {
240240
const errorMsg = `🛑 You cannot use the decorate-only option with include-unpublished or include-deprecated because the include-unpublished and include-deprecated options are only available when running the bundler. The decorate-only option skips running the bundler.\nPlease reach out to #docs-engineering if a new use case should be supported.`
241241
throw new Error(errorMsg)
242242
}

0 commit comments

Comments
 (0)