@wjwjq/release-helper 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.release/README.md +1 -1
- package/dist/prepare.js +8 -6
- package/package.json +1 -1
- package/src/.release/README.md +1 -1
- package/src/prepare.ts +11 -10
package/dist/.release/README.md
CHANGED
package/dist/prepare.js
CHANGED
|
@@ -41,13 +41,15 @@ async function prepare() {
|
|
|
41
41
|
copyFiles();
|
|
42
42
|
logger.tip(`\u8BF7\u6CE8\u610F\u4FEE\u6539.release/${releaseConfFileName} \u914D\u7F6E\u4FE1\u606F`);
|
|
43
43
|
} else {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
if (!process.env.INIT_CWD) {
|
|
45
|
+
const shouldRegenerate = await inquirer.confirm(
|
|
46
|
+
{
|
|
47
|
+
message: ".release\u914D\u7F6E\u5DF2\u5B58\u5728\uFF0C\u662F\u5426\u91CD\u65B0\u751F\u6210\uFF1F"
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
if (shouldRegenerate) {
|
|
51
|
+
copyFiles();
|
|
47
52
|
}
|
|
48
|
-
);
|
|
49
|
-
if (shouldRegenerate) {
|
|
50
|
-
copyFiles();
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
}
|
package/package.json
CHANGED
package/src/.release/README.md
CHANGED
package/src/prepare.ts
CHANGED
|
@@ -66,17 +66,18 @@ export async function prepare() {
|
|
|
66
66
|
copyFiles();
|
|
67
67
|
logger.tip(`请注意修改.release/${releaseConfFileName} 配置信息`)
|
|
68
68
|
}else {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
if(!process.env.INIT_CWD){ // Npm环境下 无法交互 会阻塞install
|
|
70
|
+
const shouldRegenerate = await inquirer.confirm(
|
|
71
|
+
{
|
|
72
|
+
message: '.release配置已存在,是否重新生成?',
|
|
73
|
+
},
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
if(shouldRegenerate){
|
|
77
|
+
copyFiles()
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
|
-
}
|
|
80
|
+
}
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
export async function checkEnvInfo() {
|