File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -6013,8 +6013,14 @@ class Package extends LibraryContainer
6013
6013
/// was not excluded on the command line.
6014
6014
bool get isLocal {
6015
6015
if (_isLocal == null ) {
6016
+ // Document embedder SDK packages only when they are in the same path as
6017
+ // the main package.
6018
+ final partOfEmbedderSdk = packageGraph.hasEmbedderSdk &&
6019
+ packageMeta.isSdk &&
6020
+ packageMeta.resolvedDir
6021
+ .startsWith (packageGraph.packageMeta.resolvedDir);
6016
6022
_isLocal = (packageMeta == packageGraph.packageMeta ||
6017
- packageGraph.hasEmbedderSdk && packageMeta.isSdk ||
6023
+ partOfEmbedderSdk ||
6018
6024
packageGraph.config.autoIncludeDependencies) &&
6019
6025
! packageGraph.config.isPackageExcluded (name);
6020
6026
}
You can’t perform that action at this time.
0 commit comments