Skip to content

Commit 304ad35

Browse files
committed
Fix: Add 'package' as valid minimum access level for documentation
Swift 5.9+ supports 'package' access level for cross-module APIs within a package. This commit updates build-documentation.sh to accept 'package' as a valid --minimum-access-level option. Changes: - Add 'package' to validation case statement - Update usage documentation to include 'package' - Update error message to list 'package' as valid option Fixes command: ./Scripts/build-documentation.sh --minimum-access-level package
1 parent f0070a2 commit 304ad35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/build-documentation.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Build Swift documentation using DocC with optional local preview.
4646
4747
OPTIONS:
4848
--preview Preview documentation locally with HTTP server
49-
--minimum-access-level LEVEL Set minimum access level (public, internal, private)
49+
--minimum-access-level LEVEL Set minimum access level (public, package, internal, private, fileprivate)
5050
Default: public
5151
--target TARGET Target to document (default: OpenSwiftUI)
5252
--hosting-base-path PATH Base path for hosting (e.g., /OpenSwiftUI)
@@ -147,11 +147,11 @@ done
147147

148148
# Validate minimum access level
149149
case "$MINIMUM_ACCESS_LEVEL" in
150-
public|internal|private|fileprivate)
150+
public|package|internal|private|fileprivate)
151151
;;
152152
*)
153153
log_error "Invalid minimum access level: $MINIMUM_ACCESS_LEVEL"
154-
log_error "Valid values: public, internal, private, fileprivate"
154+
log_error "Valid values: public, package, internal, private, fileprivate"
155155
exit 1
156156
;;
157157
esac

0 commit comments

Comments
 (0)