// @allowJs: true
// @noImplicitReferences: true
// @traceResolution: true
// @currentDirectory: /

// package.json in a secondary reference can refer to another file

// @filename: /a/node_modules/jquery/package.json
{
    "typings": "jquery.d.ts"
}

// @filename: /a/node_modules/jquery/jquery.d.ts
declare var $: { foo(): void };


// @filename: /a/b/consumer.ts
/// <reference types="jquery" />
$.foo();
