NativeScript / nativescript-dev-typescript

TypeScript support for NativeScript projects
Apache License 2.0
21 stars 10 forks source link

The app path from nsconfig is not respected in the created/updated tsconfig #60

Closed sis0k0 closed 6 years ago

sis0k0 commented 6 years ago

Please, tell us how to recreate the issue in as much detail as possible.

  1. Create an nsconfig.json file in a random project. For example:
    {
    "appResourcesPath": "App_Resources",
    "appPath": "src"
    }
  2. Install nativescript-dev-typescript.
  3. The plugin will create a new tsconfig or update your existing one with the following setting:
    compilerOptions["paths"]["~/*"] = compilerOptions["paths"]["~/*"] || [
    "app/*"
    ];

    The code that does it is here - https://github.com/NativeScript/nativescript-dev-typescript/blob/36a2bf7195a0596a4d7a0263549ef4cb81acfdb0/tsconfig-upgrader.js#L121-L123

The path should be "src/*".