Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mariasolos/path-rewrite-bug
https://github.com/mariasolos/path-rewrite-bug
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mariasolos/path-rewrite-bug
- Owner: MariaSolOs
- Created: 2024-10-22T20:24:35.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T16:47:21.000Z (3 months ago)
- Last Synced: 2024-12-15T08:09:43.139Z (about 1 month ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## To repro:
Run:
```bash
pnpm install
pnpm build
```Package `mod3` produces an invalid type declaration file:
```typescript
export declare const getFoo: () => import("mod1").Foo;
//# sourceMappingURL=index.d.ts.map
```Despite not depending on `mod1`, its types import from it. Since `mod2` re-exports `mod1`s types, and since `mod3` depends on `mod2`, compiling `mod3` should produce this:
```typescript
export declare const getFoo: () => import("mod2").Foo;
//# sourceMappingURL=index.d.ts.map
``````diff
-export declare const getFoo: () => import("mod1").Foo;
+export declare const getFoo: () => import("mod2").Foo;
//# sourceMappingURL=index.d.ts.map
```Because `mod3` has an invalid `index.d.ts`, `mod4` fails compilation when doing a lib check of `mod3`'s type declaration files.