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

Add --silent flag to hide console output #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NileDaley
Copy link

The default console output can be a bit verbose when file paths are quite long, so I added a --silent option to prevent logging to the console.

@HerbCaudill
Copy link

Since this project doesn't appear to be maintained any longer, I've forked @NileDaley's fork and published it to NPM as @herbcaudill/tscpaths in order to get the --silent option.

@AriPerkkio
Copy link

@HerbCaudill thanks for publishing this PR in separate package.

As I'm unable to create issue to your fork repository I'll just post this here. I believe you've published the package with incorrect line-endings configured to git. I'm seeing errors on yarn

$ yarn build
yarn run v1.22.5
$ rimraf dist
$ tsc --project tsconfig.prod.json
$ tscpaths -p tsconfig.prod.json -s ./lib -o ./dist --silent
/usr/bin/env: ‘node\r’: No such file or directory
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command

After running following I'm able to use tscpaths again

$ vim node_modules/@herbcaudill/tscpaths/cjs/index.js

:se ff=unix
:wq

See yarnpkg/yarn#5480 and https://stackoverflow.com/a/58558771.

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.

3 participants