Skip to content

Commit d375686

Browse files
committed
docs: add js docs
1 parent 3596149 commit d375686

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/nx-plugin/src/internal/versions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ export const cpCliVersion = loadPackageJson(
1616
path.join(projectsFolder, 'models'),
1717
).version;
1818

19+
/**
20+
* Load the package.json file from the given folder path.
21+
* @param folderPath
22+
*/
1923
function loadPackageJson(folderPath: string): PackageJson {
2024
return readJsonFile<PackageJson>(path.join(folderPath, 'package.json'));
2125
}

0 commit comments

Comments
 (0)