1.0.1 • Published 3 years ago

@hyext/ext-sdk-cliutils v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

ext-sdk-cliutils

  • 构建模块助手

引用

const { ModulesHelper } = require('@hyext/ext-sdk-cliutils');

实例化

const helper = new ModulesHelper({
  rootPath: process.cwd()
})

获取模块版本信息

const version = helper.getVersion(modulePath)
  • 新模块信息定义规则:${moduleId}@${version}
  • 建议匹配逻辑:
filterModules.has(moduleId) || filterModules.has(`${moduleId}@${version}`)

清除缓存

helper.clear()