8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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 agr 7FD3 ee to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsconfig.json can map paths within the project directory tree. TS Handbook path-mapping
tsconfig.json
In this project, the first place I want to use this is test files.
Currently, to import a TS module from src/ directory, I have to use
src/
import { Card } from "../src/card"
Adding something like:
"basedir": ".", "paths": { "~src": ["src"], "~test": ["test"] }
would let me import files in <project root>/src, like:
<project root>/src
import { Card } from "~src/card"
from any depth in the project directory.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
tsconfig.json
can map paths within the project directory tree. TS Handbook path-mappingIn this project, the first place I want to use this is test files.
Currently, to import a TS module from
src/
directory, I have to useAdding something like:
would let me import files in
<project root>/src
, like:from any depth in the project directory.
The text was updated successfully, but these errors were encountered: