MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getPackageJson

Function getPackageJson

packages/webpack5/src/helpers/project.ts:22–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 * Utility function to get the contents of the project package.json
21 */
22export function getPackageJson() {
23 return require(getProjectFilePath('package.json')) as IPackageJson;
24}
25
26/**
27 * Utility to get project files relative to the project root.

Callers 3

getAllDependenciesFunction · 0.90
getEntryPathFunction · 0.90

Calls 1

getProjectFilePathFunction · 0.70

Tested by

no test coverage detected