Skip to content

Commit 7974304

Browse files
committed
Fix bug in built packages.
1 parent 3ece020 commit 7974304

File tree

13 files changed

+82
-75
lines changed

13 files changed

+82
-75
lines changed

libs/core/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { registerElement } from './src/renderer/registry';
2-
export { AngularReactBrowserModule } from './src/angular-react-browser.module';
1+
export * from './public-api';

libs/core/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "0.1.11",
55
"ngPackage": {
66
"lib": {
7-
"entryFile": "index.ts",
7+
"entryFile": "public-api.ts",
88
"umdModuleIds": {
99
"react": "React",
1010
"react-dom": "ReactDOM"
@@ -30,15 +30,13 @@
3030
"components"
3131
],
3232
"private": false,
33-
"devDependencies": {
34-
"@types/react-dom": "^16.0.4",
35-
"@types/react": "^16.3.4"
36-
},
3733
"peerDependencies": {
3834
"@angular/compiler": "^5.2.7",
3935
"@angular/core": "^5.2.7",
4036
"@angular/platform-browser-dynamic": "^5.2.7",
4137
"@angular/platform-browser": "^5.2.7",
38+
"@types/react-dom": "^16.0.4",
39+
"@types/react": "^16.3.4",
4240
"react-dom": "^16.3.1",
4341
"react": "^16.3.1"
4442
}

libs/core/public-api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { registerElement } from './src/renderer/registry';
2+
export { AngularReactBrowserModule } from './src/angular-react-browser.module';

libs/fabric/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/package.schema.json",
33
"name": "@angular-react/fabric",
4-
"version": "0.1.3",
4+
"version": "0.1.5",
55
"ngPackage": {
66
"lib": {
7-
"entryFile": "index.ts",
7+
"entryFile": "public-api.ts",
88
"umdModuleIds": {
99
"react": "React",
10-
"react-dom": "ReactDOM"
10+
"react-dom": "ReactDOM",
11+
"@angular-react/core": "ɵa",
12+
"office-ui-fabric-react/lib/Button": "Button",
13+
"office-ui-fabric-react/lib/components/Dialog": "Dialog"
1114
},
1215
"comments": "none"
1316
},
@@ -33,16 +36,14 @@
3336
"fabric"
3437
],
3538
"private": false,
36-
"devDependencies": {
37-
"@types/react-dom": "^16.0.4",
38-
"@types/react": "^16.3.4"
39-
},
4039
"peerDependencies": {
4140
"@angular-react/core": "^0.1.0",
4241
"@angular/common": "^5.2.7",
4342
"@angular/core": "^5.2.7",
4443
"@angular/platform-browser-dynamic": "^5.2.7",
4544
"@angular/platform-browser": "^5.2.7",
45+
"@types/react-dom": "^16.0.4",
46+
"@types/react": "^16.3.4",
4647
"office-ui-fabric-react": "^5.78.0",
4748
"react-dom": "^16.3.1",
4849
"react": "^16.3.1"

libs/fabric/public-api.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export * from './src/button';
2-
export * from './src/dialog';
1+
export * from './src/button/button.module';
2+
export * from './src/button/button.component';
3+
export * from './src/dialog/dialog.module'
4+
export * from './src/dialog/dialog.component';

libs/fabric/src/button/button.module.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { DefaultButton } from 'office-ui-fabric-react/lib/Button';
77

88
import { FabButtonComponent } from './button.component';
99

10+
1011
const components = [
1112
FabButtonComponent,
1213
];
@@ -25,7 +26,3 @@ export class FabButtonModule {
2526
}
2627

2728
}
28-
29-
export {
30-
FabButtonComponent,
31-
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export * from './button.module'
1+
export * from './button.module';
2+
export * from './button.component';

libs/fabric/src/dialog/dialog.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
Output,
1313
} from '@angular/core';
1414

15-
import { IDialogProps, Dialog, } from 'office-ui-fabric-react/lib/Dialog';
16-
import { DialogType, DialogFooter } from 'office-ui-fabric-react/lib/components/Dialog';
15+
import { IDialogProps, Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/components/Dialog';
1716

1817

1918
@Component({

libs/fabric/src/dialog/dialog.module.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ import { CommonModule } from '@angular/common';
33

44
import { registerElement } from '@angular-react/core';
55
import { Fabric } from 'office-ui-fabric-react/lib/Fabric';
6-
import { Dialog } from 'office-ui-fabric-react/lib/Dialog';
7-
import { DialogFooter } from 'office-ui-fabric-react/lib/components/Dialog';
6+
import { Dialog, DialogFooter } from 'office-ui-fabric-react/lib/components/Dialog';
87

98
import { FabDialogComponent, FabDialogFooterComponent } from './dialog.component';
109

@@ -28,8 +27,3 @@ export class FabDialogModule {
2827
}
2928

3029
}
31-
32-
export {
33-
FabDialogComponent,
34-
FabDialogFooterComponent,
35-
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from './dialog.module'
2+
export * from './dialog.component';

0 commit comments

Comments
 (0)