Skip to content

Commit c8d1488

Browse files
committed
Add TypeScript path aliases for app and shared packages
- [Pasted text]  --- tests run correctly when run from terminal in /apps/editor, but fail in root ├── apps │ └── editor │ ├── jest.config.js │ ├── src │ │ ├── commands │ │ │ └── apply-response-command │ │ │ └── utils │ │ │ └── response-parser │ │ │ └── parsers │ │ │ └── code-at-cursor-parser │ │ │ └── test │ │ │ └── code-at-cursor-parser.spec.ts │ │ └── utils │ │ └── cleanup-api-response │ │ ├── cleanup-api-response.ts │ │ └── index.ts │ └── tsconfig.json ├── jest.config.js └── tsconfig.json
1 parent e4d6a7e commit c8d1488

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tsconfig.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"module": "commonjs",
44
"target": "es6",
55
"esModuleInterop": true,
6-
"baseUrl": "."
6+
"baseUrl": ".",
7+
"paths": {
8+
"@/*": ["apps/editor/src/*"],
9+
"@shared/*": ["packages/shared/src/*"]
10+
}
711
}
812
}

0 commit comments

Comments
 (0)