* Follow and respect export maps when generating module specifiers * Type baseline updates from master merge
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
tests/cases/conformance/node/index.ts(2,23): error TS2307: Cannot find module 'inner/other.js' or its corresponding type declarations.
|
|
|
|
|
|
==== tests/cases/conformance/node/index.ts (1 errors) ====
|
|
// esm format file
|
|
import { Thing } from "inner/other.js"; // should fail
|
|
~~~~~~~~~~~~~~~~
|
|
!!! error TS2307: Cannot find module 'inner/other.js' or its corresponding type declarations.
|
|
export const a = (await import("inner")).x();
|
|
==== tests/cases/conformance/node/node_modules/inner/index.d.ts (0 errors) ====
|
|
// esm format file
|
|
export { x } from "./other.js";
|
|
==== tests/cases/conformance/node/node_modules/inner/other.d.ts (0 errors) ====
|
|
// esm format file
|
|
export interface Thing {}
|
|
export const x: () => Thing;
|
|
==== tests/cases/conformance/node/package.json (0 errors) ====
|
|
{
|
|
"name": "package",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": "./index.js"
|
|
}
|
|
==== tests/cases/conformance/node/node_modules/inner/package.json (0 errors) ====
|
|
{
|
|
"name": "inner",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"default": "./index.js"
|
|
},
|
|
"./other": {
|
|
"default": "./other.js"
|
|
}
|
|
}
|
|
} |