@dcloudio/uni-cli-shared
Advanced tools
Comparing version 0.2.934 to 0.2.935
@@ -46,2 +46,5 @@ /** | ||
const supportGlobalUsingComponents = process.env.UNI_PLATFORM === 'mp-weixin' || | ||
process.env.UNI_PLATFORM === 'app-plus' | ||
function updateComponentJson (name, jsonObj, usingComponents = true) { | ||
@@ -51,3 +54,3 @@ const oldJsonStr = getJsonFile(name) | ||
if (usingComponents) { // merge usingComponents | ||
if (process.env.UNI_PLATFORM !== 'mp-weixin') { // 简单处理其他平台全局组件,直接合并到独立 json 中 | ||
if (!supportGlobalUsingComponents) { // 简单处理其他平台全局组件,直接合并到独立 json 中 | ||
jsonObj.usingComponents = Object.assign({}, | ||
@@ -65,3 +68,3 @@ globalUsingComponents, | ||
} else { // add | ||
if (process.env.UNI_PLATFORM !== 'mp-weixin') { // 简单处理其他平台全局组件,直接合并到独立 json 中 | ||
if (!supportGlobalUsingComponents) { // 简单处理其他平台全局组件,直接合并到独立 json 中 | ||
if (usingComponents) { | ||
@@ -83,3 +86,3 @@ jsonObj.usingComponents = Object.assign({}, globalUsingComponents, jsonObj.usingComponents || {}) | ||
if (process.env.UNI_PLATFORM !== 'mp-weixin') { // 简单处理其他平台全局组件,直接合并到独立 json 中 | ||
if (!supportGlobalUsingComponents) { // 简单处理其他平台全局组件,直接合并到独立 json 中 | ||
usingComponents = Object.assign({}, globalUsingComponents, usingComponents) | ||
@@ -86,0 +89,0 @@ } |
{ | ||
"name": "@dcloudio/uni-cli-shared", | ||
"version": "0.2.934", | ||
"version": "0.2.935", | ||
"description": "uni-cli-shared", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35754
829
17
31
5
195