Skip to content

Commit 1574940

Browse files
committed
(fix): Fix module bundle
1 parent 79df510 commit 1574940

File tree

6 files changed

+40
-37
lines changed

6 files changed

+40
-37
lines changed

.npmignore

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ tests
1717
coverage
1818
config
1919
karma.conf.js
20-
copy.js
2120
tsconfig.json
2221
tslint.json
22+
webpack.config.js
2323
package-lock.json
24-
!*.metadata.json
25-
*.ngfactory.ts
26-
*.ngsummary.json
27-
!bundles/*.js
24+
CODE_OF_CONDUCT.md
2825
.*
2926

3027
############
@@ -43,3 +40,9 @@ Desktop.ini
4340

4441
# Mac crap
4542
.DS_Store
43+
44+
############
45+
## Demos
46+
############
47+
48+
demo/*

index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,3 @@
1+
export * from './src/typeahead.module';
12
export * from './src/typeahead.component';
23
export * from './src/typeahead.interface';
3-
4-
import { TypeaheadComponent } from './src/typeahead.component';
5-
import { NgModule } from '@angular/core';
6-
import { CommonModule } from '@angular/common';
7-
8-
@NgModule({
9-
imports: [CommonModule],
10-
declarations: [TypeaheadComponent],
11-
exports: [TypeaheadComponent]
12-
})
13-
export class TypeaheadModule {
14-
}

package.json

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-type-ahead",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Typeahead multi-select dropdown component for angular",
55
"scripts": {
66
"test": "karma start",
@@ -35,22 +35,21 @@
3535
"rxjs": ">=5.0.0"
3636
},
3737
"devDependencies": {
38-
"@angular/animations": "4.3.3",
39-
"@angular/common": "4.3.3",
40-
"@angular/compiler": "4.3.3",
41-
"@angular/compiler-cli": "4.3.3",
42-
"@angular/core": "4.3.3",
43-
"@angular/forms": "4.3.3",
44-
"@angular/http": "4.3.3",
45-
"@angular/platform-browser": "4.3.3",
46-
"@angular/platform-browser-dynamic": "4.3.3",
47-
"@angular/platform-server": "4.3.3",
48-
"@angular/router": "4.3.3",
38+
"@angular/animations": "~4.3.3",
39+
"@angular/common": "~4.3.3",
40+
"@angular/compiler": "~4.3.3",
41+
"@angular/compiler-cli": "~4.3.3",
42+
"@angular/core": "~4.3.3",
43+
"@angular/forms": "~4.3.3",
44+
"@angular/http": "~4.3.3",
45+
"@angular/platform-browser": "~4.3.3",
46+
"@angular/platform-browser-dynamic": "~4.3.3",
47+
"@angular/platform-server": "~4.3.3",
48+
"@angular/router": "~4.3.3",
4949
"@types/hammerjs": "2.0.34",
5050
"@types/jasmine": "2.5.47",
5151
"@types/node": "7.0.22",
5252
"awesome-typescript-loader": "3.1.3",
53-
"bootstrap": "^3.3.7",
5453
"clean-webpack-plugin": "^0.1.16",
5554
"codelyzer": "~4.0.1",
5655
"concurrently": "3.1.0",
@@ -71,7 +70,7 @@
7170
"rxjs": "~5.4.0",
7271
"source-map-loader": "0.2.1",
7372
"ts-helpers": "1.1.2",
74-
"tslint": "~5.8.0",
73+
"tslint": "5.8.0",
7574
"tslint-eslint-rules": "~4.1.1",
7675
"tslint-loader": "3.5.3",
7776
"typescript": "~2.3.3",

src/typeahead.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {
22
Component, forwardRef, Input, OnDestroy, ElementRef, Output, OnChanges,
3-
EventEmitter, AfterViewInit, Inject, OnInit, Renderer2, HostListener, HostBinding
3+
EventEmitter, AfterViewInit, Inject, OnInit, Renderer2, HostListener, HostBinding, SimpleChanges
44
} from '@angular/core';
55
import { Observable } from 'rxjs/Observable';
66
import { Subscription } from 'rxjs/Subscription';
@@ -230,7 +230,7 @@ export class TypeaheadComponent implements ControlValueAccessor, AfterViewInit,
230230
this._inputChangeEvent.emit('');
231231
}
232232

233-
ngOnChanges(changes) {
233+
ngOnChanges(changes: SimpleChanges) {
234234
if (changes.suggestions && !changes.suggestions.firstChange) {
235235
this.allMatchesSubscription.unsubscribe();
236236
this.matchesSubscription.unsubscribe();

src/typeahead.module.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { TypeaheadComponent } from './typeahead.component';
2+
import { NgModule } from '@angular/core';
3+
import { CommonModule } from '@angular/common';
4+
5+
@NgModule({
6+
imports: [CommonModule],
7+
declarations: [TypeaheadComponent],
8+
exports: [TypeaheadComponent]
9+
})
10+
export class TypeaheadModule {
11+
}

tsconfig.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"compileOnSave": false,
32
"compilerOptions": {
3+
"noImplicitAny": true,
44
"module": "commonjs",
5-
"declaration": true,
6-
"moduleResolution": "node",
5+
"target": "es5",
76
"emitDecoratorMetadata": true,
87
"experimentalDecorators": true,
9-
"target": "es5",
8+
"declaration": true,
9+
"moduleResolution": "node",
1010
"noUnusedLocals": true,
1111
"types": [
1212
"hammerjs",
@@ -17,6 +17,7 @@
1717
},
1818
"files": [
1919
"index.ts",
20+
"./src/typeahead.module.ts",
2021
"./src/typeahead.component.ts",
2122
"./src/typeahead.interface.ts",
2223
"./tests/typeahead.component.spec.ts"

0 commit comments

Comments
 (0)