NativeScript / nx

NativeScript for Nx.
Other
64 stars 17 forks source link

Trouble with application id and custom nativescript.config.ts #73

Open fpaaske opened 11 months ago

fpaaske commented 11 months ago

I have this project.json setup where the nativescript.config-aaa.ts contains a different appResourcesPath than the default (nativescript.config.ts). This seems to work fine.

However, I'm also building for different environments, and have to set the application id based on that, so I add "id" to the config.

        "app-test": {
          "flags": "--config=nativescript.config-aaa.ts",
          "id": "com.app.aaa.test"
...
        "app-dev": {
          "flags": "--config=nativescript.config-aaa.ts",
          "id": "com.app.aaa.dev"

The problem is that the id replacements happens in the default nativescript.config.ts, while the rest of the build process is using the specified nativescript.config-aaa.ts.

Any tips on how I can handle this situation properly?

fpaaske commented 10 months ago

@NathanWalker do you have any tips or tricks to solve this? I think it might be very closely related to this issue; https://github.com/NativeScript/nativescript-cli/issues/3538