veplayer-mp-douyin
Advanced tools
Comparing version 1.0.3-alpha.8 to 1.0.3-alpha.9
{ | ||
"name": "veplayer-mp-douyin", | ||
"version": "1.0.3-alpha.8", | ||
"version": "1.0.3-alpha.9", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "miniprogramType": "tt-npm", |
@@ -33,6 +33,6 @@ const path = require('path'); | ||
let targetPath = ''; | ||
const isExitTTCom = fs.existsSync(path.join(__dirname, `../../${isExitSrc ? 'src/' : ''}tcomponents`)); | ||
const isExitTTCom = fs.existsSync(path.join(__dirname, `../../${isExitSrc ? 'src/' : ''}ttcomponents`)); | ||
// 不存在则新建文件夹 | ||
if (!isExitTTCom) { | ||
const ttPath = fs.mkdirSync(path.join(__dirname, `../../${isExitSrc ? 'src/' : ''}tcomponents`), { | ||
const ttPath = fs.mkdirSync(path.join(__dirname, `../../${isExitSrc ? 'src/' : ''}ttcomponents`), { | ||
recursive: true | ||
@@ -42,3 +42,3 @@ }); | ||
console.warn( | ||
`创建tcomponents失败,请手动复制node_modules/veplayer-mp-douyin到${isExitSrc ? 'src/' : ''}tcomponents` | ||
`创建ttcomponents失败,请手动复制node_modules/veplayer-mp-douyin到${isExitSrc ? 'src/' : ''}tttcomponents` | ||
); | ||
@@ -48,3 +48,3 @@ return; | ||
} | ||
targetPath = path.join(__dirname, `../../${isExitSrc ? 'src/' : ''}tcomponents/veplayer-mp-douyin`); | ||
targetPath = path.join(__dirname, `../../${isExitSrc ? 'src/' : ''}ttcomponents/veplayer-mp-douyin`); | ||
copyFolderSync(sourcePath, targetPath); | ||
@@ -57,3 +57,3 @@ } | ||
} catch (err) { | ||
console.warn('复制veplayer-mp-douyin失败,请手动复制node_modules/veplayer-mp-douyin到根目录下的tcomponents'); | ||
console.warn('复制veplayer-mp-douyin失败,请手动复制node_modules/veplayer-mp-douyin到根目录下的tttcomponents'); | ||
} |
134245