workloads / introspection / packageVersion
Function: packageVersion()
ts
function packageVersion(packageName, projectRoot?): Promise<undefined | string>
Returns the installed version of a package or undefined
if the package is not installed.
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Promise
<undefined
| string
>