Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sis0k0 opened this issue Aug 13, 2018 · 0 comments · Fixed by #61
Closed

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

sis0k0 opened this issue Aug 13, 2018 · 0 comments · Fixed by #61
Labels

Comments

@sis0k0
Copy link
Contributor

sis0k0 commented Aug 13, 2018

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/*".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant