@@ -27,14 +27,14 @@ try {
2727 Write-Host " Installing dependencies for ant-design-x (next)..."
2828 utoo deps
2929 if ($LASTEXITCODE -ne 0 ) { throw " utoo deps failed for ant-design-x (next)" }
30-
31- utoo install -- ignore - scripts
30+
31+ utoo install
3232 if ($LASTEXITCODE -ne 0 ) { throw " utoo install failed for ant-design-x (next)" }
33-
34- utoo rebuild
35- if ($LASTEXITCODE -ne 0 ) { throw " utoo rebuild failed for ant-design-x (next)" }
36-
37- Write-Green " PASS: ant-design-x (next) cloned and installed "
33+
34+ utoo run prepublishOnly -- workspaces
35+ if ($LASTEXITCODE -ne 0 ) { throw " utoo run prepublishOnly failed for ant-design-x (next)" }
36+
37+ Write-Green " PASS: ant-design-x (next) cloned, installed and built "
3838 }
3939 finally {
4040 Pop-Location
@@ -177,11 +177,13 @@ try {
177177 git clean - dfx
178178
179179 Write-Host " Installing dependencies for ant-design by npmjs.org..."
180- # Use --ignore-scripts to skip prepare hook that causes @swc/core native binding issues on Windows
181- utoo install -- registry= https:// registry.npmjs.org -- ignore- scripts
180+ utoo install -- registry= https:// registry.npmjs.org
182181 if ($LASTEXITCODE -ne 0 ) { throw " utoo install failed for ant-design (npmjs.org)" }
183-
184- Write-Green " PASS: ant-design cloned and installed"
182+
183+ utoo run prepublishOnly -- workspaces
184+ if ($LASTEXITCODE -ne 0 ) { throw " utoo run prepublishOnly failed for ant-design (npmjs.org)" }
185+
186+ Write-Green " PASS: ant-design cloned, installed and built"
185187}
186188finally {
187189 Pop-Location
@@ -290,4 +292,24 @@ finally {
290292 Remove-Item - Recurse - Force $installPrefix - ErrorAction SilentlyContinue
291293}
292294
295+ # Case: Verify ant-design-x install + build on Windows
296+ Write-Yellow " Case: ant-design-x install and build"
297+ $antdxDir = Join-Path $env: TEMP " utoo-e2e-antdx-$ ( Get-Random ) "
298+ try {
299+ git clone -- branch next -- single- branch -- depth 1 https:// github.com / ant- design/ x.git $antdxDir
300+ Push-Location $antdxDir
301+
302+ utoo install -- registry= https:// registry.npmjs.org
303+ if ($LASTEXITCODE -ne 0 ) { throw " utoo install failed for ant-design-x" }
304+
305+ utoo run prepublishOnly -- workspaces
306+ if ($LASTEXITCODE -ne 0 ) { throw " utoo run prepublishOnly failed for ant-design-x" }
307+
308+ Write-Green " PASS: ant-design-x install and build successful"
309+ }
310+ finally {
311+ Pop-Location
312+ Remove-Item - Recurse - Force $antdxDir - ErrorAction SilentlyContinue
313+ }
314+
293315Write-Green " All e2e tests passed successfully!"
0 commit comments