Closed
Description
My npm lib module's package.json
"name": "my-lib",
"exports": {
".": {
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./*": {
"require": "./dist/*.js",
"types": "./dist/*.d.ts"
},
"./**/*": {
"require": "./dist/**/*.js",
"types": "./dist/**/*.d.ts"
}
},
An app depends on this npm module and install it.
The vscode auto import only support types in import {A} from "my-lib"
resolve to my-lib/dist/index.d.ts
, and could not find the symbol and type in something like import {B} from "my-lib/utils"
resolve to my-lib/dist/utils.d.ts
.