From c4e967431c05f25e247b0c254912285b7349297e Mon Sep 17 00:00:00 2001 From: crisbeto Date: Wed, 27 Jun 2018 22:59:40 +0200 Subject: [PATCH] build: index file for cdk-experimental/scrolling not being generated Fixes the `index.js` and `public-api.js` files for the `cdk-experimental/scrolling` packages not being generated. The issue seems to come from the fact that the files aren't reference by any other files which causes them to not be output. --- .../scrolling/virtual-scroll-viewport.spec.ts | 4 +--- src/cdk-experimental/tsconfig-tests.json | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts b/src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts index 9051c744de09..a1a8211534ba 100644 --- a/src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts +++ b/src/cdk-experimental/scrolling/virtual-scroll-viewport.spec.ts @@ -3,9 +3,7 @@ import {dispatchFakeEvent} from '@angular/cdk/testing'; import {Component, Input, ViewChild, ViewContainerRef, ViewEncapsulation} from '@angular/core'; import {ComponentFixture, fakeAsync, flush, TestBed} from '@angular/core/testing'; import {animationFrameScheduler, Subject} from 'rxjs'; -import {ScrollingModule} from './scrolling-module'; -import {CdkVirtualForOf} from './virtual-for-of'; -import {CdkVirtualScrollViewport} from './virtual-scroll-viewport'; +import {CdkVirtualScrollViewport, CdkVirtualForOf, ScrollingModule} from './index'; describe('CdkVirtualScrollViewport', () => { diff --git a/src/cdk-experimental/tsconfig-tests.json b/src/cdk-experimental/tsconfig-tests.json index c66fa9da2ffe..69260ffb5e80 100644 --- a/src/cdk-experimental/tsconfig-tests.json +++ b/src/cdk-experimental/tsconfig-tests.json @@ -19,7 +19,8 @@ "emitDecoratorMetadata": true }, "include": [ - "**/*.spec.ts", - "index.ts" + // Include the index.ts for each secondary entry-point + "./*/index.ts", + "**/*.spec.ts" ] }