Skip to content

Commit 9aa42ef

Browse files
authored
chore(toolkit-lib): silence expected error in api-extractor config (#488)
Just cleaning the `projen build` output up to only contain relevant information. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license
1 parent 860c229 commit 9aa42ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.projenrc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ const apiExtractorDocsTask = toolkitLib.addTask('api-extractor-docs', {
985985
// Copy the API model to the directory (with error handling)
986986
'if [ -f dist/toolkit-lib.api.json ]; then cp dist/toolkit-lib.api.json dist/api-extractor-docs/cdk/api/toolkit-lib/; else echo "Warning: API JSON file not found"; fi',
987987
// Add version file
988-
'(cat dist/version.txt || echo "latest") > dist/api-extractor-docs/cdk/api/toolkit-lib/VERSION',
988+
'(cat dist/version.txt 2>/dev/null || echo "latest") > dist/api-extractor-docs/cdk/api/toolkit-lib/VERSION',
989989
// Copy README.md if it exists
990990
'if [ -f README.md ]; then cp README.md dist/api-extractor-docs/cdk/api/toolkit-lib/; fi',
991991
// Copy all files from docs directory if it exists

packages/@aws-cdk/toolkit-lib/.projen/tasks.json

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

0 commit comments

Comments
 (0)