ci: 🎡 配置.ps1文件的编码及换行符

This commit is contained in:
CodiceFabbrica 2026-03-18 16:41:54 +08:00
parent da7d53e791
commit 154c4c1a51
5 changed files with 21 additions and 3 deletions

View File

@ -3,7 +3,12 @@ root = true
[*]
charset = utf-8
indent_style = space
# indent_size = 2
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.ps1]
charset = utf-8-bom
end_of_line = crlf
indent_size = 4

5
.gitattributes vendored Normal file
View File

@ -0,0 +1,5 @@
# Default: auto-detect
* text=auto eol=lf
# PowerShell scripts must use CRLF
*.ps1 text eol=crlf

View File

@ -27,6 +27,7 @@ export default [
"patches/",
"wxcomponents/",
"lib/",
"scripts/",
],
languageOptions: {
globals: {

View File

@ -24,5 +24,12 @@ export default {
printWidth: 120,
},
},
{
files: ["*.ps1"],
options: {
endOfLine: "crlf",
tabWidth: 4,
},
},
],
};

View File

@ -1,4 +1,4 @@
# 发布所有子包到私有 npm 仓库
# 发布所有子包到私有 npm 仓库
# 使用方法: powershell scripts/publish.ps1
# 注意: 发布仓库地址使用各子包 package.json 中的 publishConfig.registry 配置
# 版本管理请先通过 pnpm release (standard-version) 完成,本脚本仅负责构建和发布