Skip to content

tns preview does not handle custom binary files #4765

Open
@ventsislav-georgiev

Description

@ventsislav-georgiev

Is your feature request related to a problem? Please describe.

The tns preview command syncs files based on their file extension. If the file is binary it should be sent as base64 encoded file. Currently the check is based on a third party dependency istextorbinary

binary = isTextOrBinary.isBinarySync(file);

This lib only supports a limited set of binary extensions
https://github.com/bevry/binaryextensions/blob/master/source/index.json

Describe the solution you'd like

Add a parameter to the command to allow adding additional extensions that must be handled as binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurepreviewDescribes issues related to preview command

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions