Skip to content

.js extension and run cmd required  #411

@lal12

Description

@lal12

Previously I used tjs like this:

/bin/myscript

#!/usr/bin/tjs
…

However recently this doesn't work anymore, for two reasons:

  1. tjs needs to be called with run cmd. However you cannot pass a second argument in shebang. Easy to work around that by adding a wrapper script.
  2. tjs doesn't want files without a js extension anymore. Maybe also workaround-able by using a custom js script.

Is this intended behavior, if so why?

P.S. the "error message" for a file with another file ending is also misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions