-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed as not planned
Description
๐ Search Terms
reference types error
๐ Version & Regression Information
- This changed between versions 5.2.2 and 5.3.2
โฏ Playground Link
No response
๐ป Code
My code does a type import like:
import type { ModuleOptions } from '../../module/module';and in 5.3.2 this adds a type reference in the compiled output:
/// <reference types="dist/module/module" />which is an invalid path from the point of the user of this package and result in an error:
node_modules/foo-package/dist/lib/dir/file.d.ts:4:23 - error TS2688: Cannot find type definition file for 'dist/module/module'.
4 /// <reference types="dist/module/module" />
๐ Actual behavior
Adds a broken reference:
/// <reference types="dist/module/module" />๐ Expected behavior
5.2.2 didn't add a reference in this case.
Additional information about the issue
No response
Metadata
Metadata
Assignees
Labels
No labels