We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
scripts/tsconfig-register.js
const tsConfig = require('../tsconfig.json'); const tsConfigPaths = require('tsconfig-paths'); const baseUrl = tsConfig.compilerOptions.outDir; tsConfigPaths.register({ baseUrl, paths: tsConfig.compilerOptions.paths || [], });
package.json
"scripts": { "start": "node -r ./scripts/tsconfig-register.js -r dotenv/config dist" }, "jest": { "moduleNameMapper": { "@modules/(.*)": "<rootDir>/src/@modules/$1", "@/(.*)": "<rootDir>/src/$1" }, }
yarn add tsconfig-paths
The text was updated successfully, but these errors were encountered:
tsconfig.json
{ "baseUrl": ".", "paths": { "@modules/*": [ "src/@modules/*" ], "@/*": [ "src/*" ] } }
Sorry, something went wrong.
No branches or pull requests
scripts/tsconfig-register.js
package.json
The text was updated successfully, but these errors were encountered: