packageConfigPath property
The path to the entrypoint's ".dart_tool/package_config.json" file relative to the current working directory .
Implementation
late String packageConfigPath = p.relative(
p.normalize(p.join(workspaceRoot.dir, '.dart_tool', 'package_config.json')),
);