Skip to content

Latest commit

 

History

History
58 lines (31 loc) · 1.17 KB

File metadata and controls

58 lines (31 loc) · 1.17 KB
hide_title true
custom_edit_url
pagination_prev
pagination_next

Home > @rushstack/node-core-library > PackageJsonLookup > tryLoadNodePackageJsonFor

PackageJsonLookup.tryLoadNodePackageJsonFor() method

This function is similar to PackageJsonLookup.tryLoadPackageJsonFor()<></>, except that it does not report an error if the version field is missing from the package.json file.

Signature:

tryLoadNodePackageJsonFor(fileOrFolderPath: string): INodePackageJson | undefined;

Parameters

Parameter

Type

Description

fileOrFolderPath

string

Returns:

INodePackageJson | undefined