https://github.com/frigus02/test-ts-oldprogram-moduleresolution
https://github.com/frigus02/test-ts-oldprogram-moduleresolution
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/frigus02/test-ts-oldprogram-moduleresolution
- Owner: frigus02
- Created: 2022-08-12T10:44:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-12T10:32:24.000Z (almost 4 years ago)
- Last Synced: 2024-10-06T09:43:53.173Z (almost 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test TypeScript program and module resolution cache
Test "custom `tsc`" with watch mode and `ts.SourceFile` cache. It emulates
running 3 builds on the following project structore:
```
/a.ts (imports /module/b.d.ts)
/module/b.d.ts
```
1. Successful build
2. Delete file `/module/b.d.ts`. Build fails with error "TS2307: Cannot find
module"
3. Restore file `/module/b.d.ts`. Build still fails, but I would expect it to
succeed again
To reproduce:
```sh
$ npm ci
$ node index.js
```