code: def _installed_packages(self) -> Generator[str, None, None]:
          
          with (self._build_dir / 'package.json').open('r') as f:
              packages = json.load(f)
          yield from packages['dependencies'].keys()
docs: Extract installed packages as list from `package.json`.