How does this, uh, work? #143
Replies: 4 comments
-
Okay! I found something that said to try Now I'm getting output, and it it looks like it's traversing files, but it looks at module references like |
Beta Was this translation helpful? Give feedback.
-
@matthew-dean tsc-alias first scans for files, after that it wil try to replace those files. It wil scan every file for import statements and try to replace the aliases, but it wil only replace the aliases of which the destination file exists.
Does the destination file exist? |
Beta Was this translation helpful? Give feedback.
-
Similar issue. Let's say I have alias:
It recognizes the alias (after putting in some logs) but doesn't do the replacement. Maybe it's because I don't use outDir? I compile the files in place. |
Beta Was this translation helpful? Give feedback.
-
@willyboy tsc-alias needs an outDir. The outDir is used to look if the resolved alias exists on the filesystem, if it isn't found tsc-alias won't replace the alias. |
Beta Was this translation helpful? Give feedback.
-
I have definition files generated by
tsc
. I'm trying to usetsc-alias
remap paths in the exported types to relative paths, because otherwise other projects have no idea what those paths mean.However,
tsc-alias
does nothing.npx tsc-alias
does nothingnpx tsc-alias -p tsconfig.json
does nothing.I tried changing settings in package.json, and I set verbose to true and silent to false, and STILL, I would have expected some kind of log message, but this package does absolutely nothing. No output, no errors, no status, nothing.
Beta Was this translation helpful? Give feedback.
All reactions