-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
ts-node 8.0.3 (new formula) #37059
ts-node 8.0.3 (new formula) #37059
Conversation
This audit needs to be corrected
|
Formula/ts-node.rb
Outdated
def install | ||
system "npm", "install", *Language::Node.std_npm_install_args(libexec) | ||
bin.install_symlink Dir["#{libexec}/bin/*"] | ||
# Adding typescript to library's libexec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you need to do this. Shouldn't npm install
install typescript
already ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this as I found that both brew install typescript
and npm install typescript -g
did not work for ts-node
. I'm asking for help for any cases like this (that is, how to resolve external packages via npm install -g
). Also, my humble understanding on how Node.js, npm and CommonJS modules work out seems not enough.
Another observation from package.json
is that typescript
is (perhaps intentionally) listed in peerDependencies
and devDependencies
.
TypeStrong/ts-node#765
https://github.com/TypeStrong/ts-node/blob/74147523da8853a41b70bf04578125e2d6f84731/package.json#L67-L70
The trailing whitespace is easy to fix. But the other problem is under discussion. |
Maybe a better way for solving the homebrew-core/Formula/babel.rb Lines 18 to 34 in da56cb0
|
Remove trailing whitespace
@chrmoritz Thanks! I've commited as you suggested. However, I found Another question I had about pinning |
Co-Authored-By: Maecenas <[email protected]>
This reverts commit 25c1ee3.
@chrmoritz @javian Please review again if you are free. To fix I've proposed and merged a PR, and released a new version 8.0.3 of |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Can't all of this just be installed via @Homebrew/maintainers sorry if I'm late to the party, but are we accepting node formulas these days? Node formulae seem to have significant added complexity. |
Thanks for replying!
I think so, (and believe that it would even be easier for most of the Formulas). But chances are that global installation for cli tools may cause other unintended problems. One reason I would like to have with
I followed the instructions at repo, but it hasn't been updated for some time. |
Yes, we are. In this case, though, I don't think this is a good fit for inclusion because it's so specific to NodeJS. https://formulae.brew.sh/formula/alexjs on the other hand is an example of a useful library even if you use no other NodeJS stuff on your machine. |
Sorry @Maecenas, at this time I don't think we can accept this formula in Sorry we didn't come to this conclusion earlier. Thanks so much for your contributions, past, present and future to Homebrew. We REALLY value having a vibrant community with contributors like you! 💛 |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Update 1: Fix failed checks by latest commits and by updating
ts-node
.I was trying to add new formula ts-node and failed to resolve typescript module. I have tried to add a line of
console.log(modules.path);
to the head of/usr/local/bin/ts-node
, in order to discover therequire()
method's module looking path. The output is:And the error occur, even after installing
typescript
to the/usr/local/Cellar/ts-node/8.0.2/libexec/lib/node_modules/typescript
.