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