MCPcopy Index your code
hub / github.com/reactive-python/reactpy / make_js_pkg_info

Function make_js_pkg_info

tasks.py:300–308  ·  view source on GitHub ↗
(pkg_dir: Path)

Source from the content-addressed store, hash-verified

298
299
300def make_js_pkg_info(pkg_dir: Path) -> PackageInfo:
301 with (pkg_dir / "package.json").open() as f:
302 pkg_json = json.load(f)
303 return PackageInfo(
304 name=pkg_json["name"],
305 path=pkg_dir,
306 language="js",
307 version=pkg_json["version"],
308 )
309
310
311@dataclass

Callers 1

get_packagesFunction · 0.85

Calls 2

PackageInfoClass · 0.85
openMethod · 0.80

Tested by

no test coverage detected