Skip to content
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

fix: broken shebang parameters of cli-ts-node-commonjs and cli-ts-node-esm on some linux distros #8821

Merged
merged 2 commits into from Mar 29, 2022

Conversation

giladgd
Copy link
Contributor

@giladgd giladgd commented Mar 28, 2022

Description of change

Added a workaround in nodejs itself to use ts-node instead of relying on shebang parameters, as they seem to work a bit differently on some linux distros, and using the -S parameter (#!/usr/bin/env -S node <parameters>) breaks the CLI on Windows.

Closes #8818

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change - N/A
  • Documentation has been updated to reflect this change - N/A
  • The new commits follow conventions explained in CONTRIBUTING.md

…node-esm` on some linux distros

Changed to nodejs workaround instead of relying on shebang parameters, as they work a bit differently on some linux distros, and using the "-S" parameter breaks the CLI on Windows

Closes typeorm#8818
@pleerock pleerock merged commit c5dfc11 into typeorm:master Mar 29, 2022
M-TGH pushed a commit to TradeCast/typeorm that referenced this pull request Mar 29, 2022
…node-esm` on some linux distros (typeorm#8821)

Changed to nodejs workaround instead of relying on shebang parameters, as they work a bit differently on some linux distros, and using the "-S" parameter breaks the CLI on Windows

Closes typeorm#8818
@akindo
Copy link

akindo commented Mar 31, 2022

Good work on the quick fix! When do you think this will be released? ☺️

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

Successfully merging this pull request may close these issues.

Can't run typeorm-ts-node-commonjs CLI script in docker node container
3 participants