* Support 'package.json' not in package root * Test "foo/@bar" * More tests, and don't use "types" from the root package.json if not loading the root module
17 lines
379 B
TypeScript
17 lines
379 B
TypeScript
// @noImplicitReferences: true
|
|
// @traceResolution: true
|
|
|
|
// Loads from a "fake" nested package.json, not from the one at the root.
|
|
|
|
// @Filename: /node_modules/foo/bar/package.json
|
|
{ "types": "types.d.ts" }
|
|
|
|
// @Filename: /node_modules/foo/package.json
|
|
{}
|
|
|
|
// @Filename: /node_modules/foo/bar/types.d.ts
|
|
export const x: number;
|
|
|
|
// @Filename: /a.ts
|
|
import { x } from "foo/bar";
|