@acoustic-content-sdk/tooling-dependencies 中文文档教程

发布于 4年前 浏览 14 更新于 3年前

npm

用于检测包中依赖项的实用函数

API 文档

<一个名字="_86d5d3913691033bdb33cd9d2802836d275c2d548161c2b528d056a5f1f8ae03">

@acoustic-content-sdk/tooling-dependencies

tooling-dependencies package

Utility functions to detect dependencies in packages

Functions

FunctionDescription
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

VariableDescription
VERSIONVersion and build number of the package

主页 > @acoustic-content-sdk/tooling-dependencies > detectDependencies

detectDependencies() function

通过扫描 CJS 文件并跟踪类型中的依赖关系,从构建输出中检测直接依赖关系。 实现不会传递地解决这些依赖关系。

签名:

export declare function detectDependencies(aDir: string): Promise<string[]>;

Parameters

ParameterTypeDescription
aDirstringthe directory to scan

返回:

Promise

依赖列表

主页 > @acoustic-content-sdk/tooling-dependencies > findPeerDependencies

findPeerDependencies() function

一起查找给定包的所有对等依赖项

签名:

export declare function findPeerDependencies(aDeps: string[]): Promise<string[]>;

Parameters

ParameterTypeDescription
aDepsstring[]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;
}

npm

Utility functions to detect dependencies in packages

API Documentation

Home > @acoustic-content-sdk/tooling-dependencies

tooling-dependencies package

Utility functions to detect dependencies in packages

Functions

FunctionDescription
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

VariableDescription
VERSIONVersion 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

ParameterTypeDescription
aDirstringthe 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

ParameterTypeDescription
aDepsstring[]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;
}
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文