Title: fix: copy Vite output for production builds by tannerlinsley · Pull Request #6083 · NativeScript/nativescript-cli · GitHub
Open Graph Title: fix: copy Vite output for production builds by tannerlinsley · Pull Request #6083 · NativeScript/nativescript-cli
X Title: fix: copy Vite output for production builds by tannerlinsley · Pull Request #6083 · NativeScript/nativescript-cli
Description: Problem Vite writes non-watch builds to .ns-vite-build, but the CLI only copied that output into the native app directory from the watch-mode IPC handler. ns build ios and ns build android could therefore package stale or missing JavaScript. Fix share Vite source/destination path resolution between watch and non-watch builds copy a successful non-watch Vite build before resolving preparation fail the production build when the Vite output is missing or cannot be copied verify the source exists before replacing the destination Validation npm test (1509 passing, 9 pending) release iOS simulator build; verified a unique production endpoint in the final .app bundle signed Android release build; verified a unique production endpoint in the final .apk bundle Summary by CodeRabbit Bug Fixes Vite builds now copy generated files to the native app destination immediately after successful non-watch builds. Improved handling of missing or failed Vite output copies, with errors surfaced when required. Destination directories are fully refreshed during Vite bundle copies to prevent stale files. Tests Added coverage for successful Vite output copying and copy failure handling.
Open Graph Description: Problem Vite writes non-watch builds to .ns-vite-build, but the CLI only copied that output into the native app directory from the watch-mode IPC handler. ns build ios and ns build android could th...
X Description: Problem Vite writes non-watch builds to .ns-vite-build, but the CLI only copied that output into the native app directory from the watch-mode IPC handler. ns build ios and ns build android could th...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/pull/6083
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:576b9e4f-dc50-c43f-ffeb-3e31991bb457 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D20A:B1E72:2CFF0F:3CAE28:6A616FFE |
| html-safe-nonce | f3e607cf34f3a6f6168978320e0f55e6a1178d7ea522d5aaa1843564caa7d4fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjBBOkIxRTcyOjJDRkYwRjozQ0FFMjg6NkE2MTZGRkUiLCJ2aXNpdG9yX2lkIjoiODk1MjU1OTE1NTAzMjQ1MzExOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3e4a9d3c73988ebd5a54e9cf0e287dca3a2782ed684e0c5dbefcab21fd781d3e |
| hovercard-subject-tag | pull_request:4102977683 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/NativeScript/nativescript-cli/pull/6083/files |
| twitter:image | https://avatars.githubusercontent.com/u/5580297?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5580297?s=400&v=4 |
| og:image:alt | Problem Vite writes non-watch builds to .ns-vite-build, but the CLI only copied that output into the native app directory from the watch-mode IPC handler. ns build ios and ns build android could th... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b05bb6314e7e93021a7b7dab54a85cbe48d821938e762c1dff815efd60699622 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 94389bfdcd393b0a5a274aee94e8a9739d063fe5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width