README
Utility functions to detect dependencies in packages
Home > @acoustic-content-sdk/tooling-dependencies
tooling-dependencies package
Utility functions to detect dependencies in packages
Functions
Function | Description |
---|---|
detectDependencies(aDir) | Detects direct dependencies from the build output by scanning the CJS file and by following the dependencies in the typings. The implementation will not resolve these dependencies transitively. |
findPeerDependencies(aDeps) | Finds all peer dependencies of the given packages together will all peer dependencies |
Variables
Variable | Description |
---|---|
VERSION | Version and build number of the package |
Home > @acoustic-content-sdk/tooling-dependencies > detectDependencies
detectDependencies() function
Detects direct dependencies from the build output by scanning the CJS file and by following the dependencies in the typings. The implementation will not resolve these dependencies transitively.
Signature:
export declare function detectDependencies(aDir: string): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
aDir | string |
the directory to scan |
Returns:
Promise<string[]>
the list of dependencies
Home > @acoustic-content-sdk/tooling-dependencies > findPeerDependencies
findPeerDependencies() function
Finds all peer dependencies of the given packages together will all peer dependencies
Signature:
export declare function findPeerDependencies(aDeps: string[]): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
aDeps | string[] |
a list of all dependencies |
Returns:
Promise<string[]>
the list of all peer dependencies of these dependencies
Home > @acoustic-content-sdk/tooling-dependencies > VERSION
VERSION variable
Version and build number of the package
Signature:
VERSION: {
version: {
major: string;
minor: string;
patch: string;
branch: string;
};
build: Date;
}