MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / getPackageFields

Function getPackageFields

bin/update-monorepo-file.js:33–44  ·  view source on GitHub ↗
(pkg)

Source from the content-addressed store, hash-verified

31}
32
33function getPackageFields(pkg) {
34 const packageJson = fse.readJsonSync(path.join(pkg.location, 'package.json'));
35
36 const relativeUri = getPackageRelativeUri(pkg);
37 const pkgUrl = `https://github.com/loopbackio/loopback-next/tree/master/${relativeUri}`;
38
39 return [
40 `[${relativeUri}](${pkgUrl})`,
41 pkg.private ? '_(private)_' : pkg.name,
42 packageJson.description,
43 ];
44}
45
46function updateTable(packages) {
47 const header = ['Package', 'npm', 'Description'];

Callers

nothing calls this directly

Calls 1

getPackageRelativeUriFunction · 0.85

Tested by

no test coverage detected