fix verification-check problem when building a module project
refactor: getPackagingType inlined