You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(project): let the project config move the build directory
`platforms` was hardcoded as the directory the native projects are
generated into. A project can now point it somewhere else with
`buildPath` in `nativescript.config`:
```js
export default {
buildPath: "build/native",
} satisfies NativeScriptConfig;
```
`ProjectData.platformsDir` is derived from it, so everything that already
goes through `platformsDir` follows along. The places that reached for
the `platforms` constant to talk about the project's own build directory
- `ns clean`, `ns migrate`, `ns update` and `ns typings android` - now
ask `getBuildRelativeDirectoryPath()` instead. The `platforms` folder
inside a plugin's own package is unrelated and untouched.
Defaults to `platforms`, so nothing changes for a project that does not
set it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments