clouddreamai-cicd-setup 1.5.35 → 1.5.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clouddreamai-cicd-setup",
3
- "version": "1.5.35",
3
+ "version": "1.5.36",
4
4
  "description": "CloudDreamAI GitLab CI/CD 自动配置工具 - 支持 NestJS/Vue/React 项目的一键 CI/CD 配置",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -440,6 +440,8 @@ bash ci/generate-env.sh $ENV_TYPE
440
440
 
441
441
  # 将 .env 中的本地地址替换为 host.docker.internal(容器内访问宿主机)
442
442
  if [ -f ".env" ]; then
443
+ # 先转换 Windows 换行符为 Unix 格式
444
+ sed -i 's/\r$//' .env
443
445
  sed -i 's/=localhost$/=host.docker.internal/g' .env
444
446
  sed -i 's/=127\.0\.0\.1$/=host.docker.internal/g' .env
445
447
  echo "✓ 已将本地地址转换为容器可访问的地址"