Skip to content

Commit 00120f9

Browse files
author
Matt Lewis
committed
fix(esm): dont import sass files in the esm build
1 parent 726aaac commit 00120f9

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

angular2-calendar.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
1-
export * from './src/providers/calendarEventTitle.provider';
2-
export * from './src/providers/calendarMomentDateFormatter.provider';
3-
export * from './src/providers/calendarNativeDateFormatter.provider';
4-
export * from './src/providers/calendarDateFormatter.provider';
5-
export * from './src/interfaces/calendarDateFormatter.interface';
6-
export * from './src/calendar.module';
7-
export {CalendarEvent, EventAction as CalendarEventAction} from 'calendar-utils';
1+
import './scss/angular2-calendar.scss';
2+
export * from './src/index';

src/calendar.module.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import './../scss/angular2-calendar.scss';
21
import {NgModule} from '@angular/core';
32
import {CommonModule} from '@angular/common';
43
import {CalendarDayView} from './components/day/calendarDayView.component';

src/index.ts

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export * from './providers/calendarEventTitle.provider';
2+
export * from './providers/calendarMomentDateFormatter.provider';
3+
export * from './providers/calendarNativeDateFormatter.provider';
4+
export * from './providers/calendarDateFormatter.provider';
5+
export * from './interfaces/calendarDateFormatter.interface';
6+
export * from './calendar.module';
7+
export {CalendarEvent, EventAction as CalendarEventAction} from 'calendar-utils';

tsconfig-ngc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"skipLibCheck": true
1515
},
1616
"files": [
17-
"angular2-calendar.ts"
17+
"src/index.ts"
1818
],
1919
"angularCompilerOptions": {
2020
"strictMetadataEmit": true,

0 commit comments

Comments
 (0)