ProjectRoot class
Project Root Detection for ServerPod Monorepos
ServerPod v3 projects use a 3-package structure:
- {project}_server/ (source of truth)
- {project}_client/ (generated)
- {project}_flutter/ (app)
Boost installs at: {monorepo_root}/.ai/boost/
Detection Strategy:
- Check environment variable: SERVERPOD_BOOST_PROJECT_ROOT
- If in .ai/boost/, navigate up to monorepo root
- Detect *_server package (go up to find monorepo root)
- Fallback to current directory
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
detect(
[String? currentPath]) → String - Detect the ServerPod project root
-
findClientPackage(
String projectRoot) → String? - Find the client package directory
-
findServerPackage(
String projectRoot) → String? - Find the server package directory
-
isValidServerPodProject(
String path) → bool - Validate this is a ServerPod project