ci: 🎡 配置.ps1文件的编码及换行符
This commit is contained in:
parent
da7d53e791
commit
154c4c1a51
|
|
@ -3,7 +3,12 @@ root = true
|
||||||
[*]
|
[*]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
indent_style = space
|
indent_style = space
|
||||||
# indent_size = 2
|
indent_size = 2
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.ps1]
|
||||||
|
charset = utf-8-bom
|
||||||
|
end_of_line = crlf
|
||||||
|
indent_size = 4
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
# Default: auto-detect
|
||||||
|
* text=auto eol=lf
|
||||||
|
|
||||||
|
# PowerShell scripts must use CRLF
|
||||||
|
*.ps1 text eol=crlf
|
||||||
|
|
@ -27,6 +27,7 @@ export default [
|
||||||
"patches/",
|
"patches/",
|
||||||
"wxcomponents/",
|
"wxcomponents/",
|
||||||
"lib/",
|
"lib/",
|
||||||
|
"scripts/",
|
||||||
],
|
],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
|
|
|
||||||
|
|
@ -24,5 +24,12 @@ export default {
|
||||||
printWidth: 120,
|
printWidth: 120,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
files: ["*.ps1"],
|
||||||
|
options: {
|
||||||
|
endOfLine: "crlf",
|
||||||
|
tabWidth: 4,
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# 发布所有子包到私有 npm 仓库
|
# 发布所有子包到私有 npm 仓库
|
||||||
# 使用方法: powershell scripts/publish.ps1
|
# 使用方法: powershell scripts/publish.ps1
|
||||||
# 注意: 发布仓库地址使用各子包 package.json 中的 publishConfig.registry 配置
|
# 注意: 发布仓库地址使用各子包 package.json 中的 publishConfig.registry 配置
|
||||||
# 版本管理请先通过 pnpm release (standard-version) 完成,本脚本仅负责构建和发布
|
# 版本管理请先通过 pnpm release (standard-version) 完成,本脚本仅负责构建和发布
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue