-
Notifications
You must be signed in to change notification settings - Fork 11
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
Extraneous ../
in resolved paths?
#30
Comments
I guess I'm unsure why you would want this. This package is for changing compiled files. Here's an example input.
Here's an example output.
Having the path back out of your dist folder won't work because those files need to be included for your package to work correctly. Am I missing something? |
I need my files compiled to run mocha on it; like mentioned in the original message. Trying to use ts-mocha doesn't work because tsconfig-paths is broken, so I need to compile my code/tests to run my tests. out/ in my diagram is my output directory.
I agree, that's the bug. |
Closing for now. Feel free to push back. I believe your setup should just be altered? Here is what a common setup looks like referencing your files.
|
You should probably specify in the README or something that the tool expects a specific directory structure (I don’t see a difference between my root or a src/ directory, and I don’t understand why it’s a problem) |
The tool doesn't require a specific folder structure. I'm simply saying that having one might help you. 99% of packages have a |
Hi,
I'm trying to use tsconfig-replace-paths but the generated paths go back up one extra level.
My setup is as such:
My global configuration contains
and then the
tsconfig.json
files inserver/
andtest-server/
are:(the only extra thing
test-server/tsconfig.json
contains isnoEmit: false
to generate code, because I need to run mocha on it and all the module that offer to run TS via mocha don't seem to work with my usecase).Running this module properly finds files & replaces in them (I tried both with and without
-p test-server/tsconfig.json
):But the transformation is off by one level:
Which tries to find a module
out/shared/parse-assert
(instead ofout/test-server/shared/parse-assert
) and fails.Not sure if it's because my setup is weird or because I missed an option, but I'd like to know how I can solve this.
Thanks!
The text was updated successfully, but these errors were encountered: