@acoustic-content-sdk/tooling-dependencies 中文文档教程
用于检测包中依赖项的实用函数
<一个名字="_86d5d3913691033bdb33cd9d2802836d275c2d548161c2b528d056a5f1f8ae03">
@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 |
主页 > @acoustic-content-sdk/tooling-dependencies > detectDependencies
detectDependencies() function
通过扫描 CJS 文件并跟踪类型中的依赖关系,从构建输出中检测直接依赖关系。 实现不会传递地解决这些依赖关系。
签名:
export declare function detectDependencies(aDir: string): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
aDir | string | the directory to scan |
返回:
Promise
依赖列表
主页 > @acoustic-content-sdk/tooling-dependencies > findPeerDependencies
findPeerDependencies() function
一起查找给定包的所有对等依赖项
签名:
export declare function findPeerDependencies(aDeps: string[]): Promise<string[]>;
Parameters
Parameter | Type | Description |
---|---|---|
aDeps | string[] | a list of all dependencies |
返回:
Promise
the list of all peer dependencies of these dependencies
Home > @acoustic-content-sdk/tooling-dependencies > VERSION
VERSION variable
软件包的版本和构建号
签名:
VERSION: {
version: {
major: string;
minor: string;
patch: string;
branch: string;
};
build: Date;
}
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;
}