UNPKG

@ohos/hpm-cli-notice

Version:

Combining the notice files in the project into 'Third Party Open Source Notice' file.

13 lines (8 loc) 376 B
# @ohos/hpm_cli_notice 收集项目中的notice文件(由License文件生成),在项目根目录下生成Third Party Open Source Notice文件 插件监听hpm-cli提供的afterDist钩子函数,会在发行版执行编译结束之后自动调用,生成合并后的notice文件。 ``` hpmApi.on(hpmApi.eventTypes.afterDist, () => { // 生成notice文件 }) ```