Skip to content

Application built in release has TypeScript files #4007

@rosen-vladimirov

Description

@rosen-vladimirov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 4.2.4
  • Cross-platform modules: not applicable
  • Android Runtime: not applicable
  • iOS Runtime: not applicable
  • Plugin(s): nativescript-facebook

Describe the bug
When building in release, application should not contain any TypeScript files, as they cannot be used (in debug you can use them for debugging). However, .d.ts files from plugins are included in the built app.

To Reproduce

tns create myApp
cd myApp
npm i --save nativescript-facebook
tns build android --release --keyStorePath <path> --keyStorePassword <pass> --keyStoreAlias <alias> --keyStoreAliasPassword <alias pass>
tns build ios --release --for-device

Now check the produced .apk and .ipa - they both contain .d.ts files inside <path to app>/tns_modules/nativescript-facebook.

Expected behavior
TypeScript files should not be included in the application built in release mode.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions