<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
2.1.0 version does not include @angular/forms/src/directives/number_value_accessor in generated factories<br>
2.1.1 include it but in genDir/node_modules/<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/angular/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/angular">@angular</a>... this file is missing</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Compiling as was</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.1.1</li>
<li><strong>Language:</strong> Typescript 2.03</li>
<li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =   6.9.1</li>
</ul>
<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>

<p dir="auto">When running ngc the compiler doesn't codegen components inside node_modules when the component isn't exported (<code class="notranslate">export * from './my.component';</code>) from the module. There are no errors emitted and all the *.metadata.json files for the libraries exist.</p>
<p dir="auto"><strong>Expected behavior</strong></p>

<p dir="auto">For ngc to successfully codegen all 3rd party components without having to export the components publicly</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
Checkout this repo: <a href="https://github.com/mattlewis92/angular2-tv-tracker">https://github.com/mattlewis92/angular2-tv-tracker</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install
npm run ngc"><pre class="notranslate"><code class="notranslate">npm install
npm run ngc
</code></pre></div>
<p dir="auto">You will then see that only one ngfactory.ts module file is emitted for each 3rd party module inside of the <code class="notranslate">aot/module_modules</code> folder, but none of the other components are codegen'd. As you can see from the screenshot, the reference to the <code class="notranslate">'./directives/calendarTooltip.directive.ngfactory'</code> file is created but the file itself doesn't exist.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6425649/18809156/102a9440-826d-11e6-817b-1c71bb6ffaf4.png"><img width="1375" alt="screen shot 2016-09-24 at 15 35 24" src="https://cloud.githubusercontent.com/assets/6425649/18809156/102a9440-826d-11e6-817b-1c71bb6ffaf4.png" style="max-width: 100%;"></a></p>
<p dir="auto">If you need any more info let me know!</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>

<p dir="auto">OSX</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X</p>

<p dir="auto">2.0.1</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</p>

<p dir="auto">N/A</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
Typescript</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br>
v5.11.0</p>
</li>
</ul>