Skip to content

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

@sis0k0

Description

@sis0k0

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"
}
  1. Install nativescript-dev-typescript.
  2. 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 -

compilerOptions["paths"]["~/*"] = compilerOptions["paths"]["~/*"] || [
"app/*"
];

The path should be "src/*".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions