Tooling functions to implement support for feature modules.
npm install @acoustic-content-sdk/tooling-pkg-mgr

Tooling functions to implement support for feature modules.
Home > @acoustic-content-sdk/tooling-pkg-mgr
Tooling functions to implement support for feature modules.
| Enumeration | Description |
| --- | --- |
| PackageManager | Enumeration of the supported package managers |
| Function | Description |
| --- | --- |
| getPackageManager(aRoot) | Decodes the supported workspace from the host |
| rxSupportsNpm() | Tests if we have an npm installation |
| rxSupportsYarn() | Tests if we have a yarn installation |
| rxYarnHasPackage(aName, aRange) | Tests if we have a matching package installation |
| Variable | Description |
| --- | --- |
| VERSION | Version and build number of the package |
Home > @acoustic-content-sdk/tooling-pkg-mgr > PackageManager
Enumeration of the supported package managers
Signature:
``typescript`
export declare enum PackageManager
| Member | Value | Description |
| --- | --- | --- |
| NPM | "npm" | |
| YARN | "yarn" | |
Home > @acoustic-content-sdk/tooling-pkg-mgr > getPackageManager
Decodes the supported workspace from the host
Signature:
`typescript`
export declare function getPackageManager(aRoot: string): Observable
| Parameter | Type | Description |
| --- | --- | --- |
| aRoot | string | the root dir to test |
Returns:
Observable
the supported package manager
Home > @acoustic-content-sdk/tooling-pkg-mgr > rxSupportsNpm
Tests if we have an npm installation
Signature:
`typescript`
export declare function rxSupportsNpm(): Observable
Returns:
Observable
true if we have an installation, else false
Home > @acoustic-content-sdk/tooling-pkg-mgr > rxSupportsYarn
Tests if we have a yarn installation
Signature:
`typescript`
export declare function rxSupportsYarn(): Observable
Returns:
Observable
true if we have an installation, else false
Home > @acoustic-content-sdk/tooling-pkg-mgr > rxYarnHasPackage
Tests if we have a matching package installation
Signature:
`typescript`
export declare function rxYarnHasPackage(aName: string, aRange: string): Observable
| Parameter | Type | Description |
| --- | --- | --- |
| aName | string | package name |
| aRange | string | |
Returns:
Observable
true if we have such a package
Home > @acoustic-content-sdk/tooling-pkg-mgr > VERSION
Version and build number of the package
Signature:
`typescript``
VERSION: {
version: {
major: string;
minor: string;
patch: string;
branch: string;
};
build: Date;
}