File tree 5 files changed +25
-14
lines changed
5 files changed +25
-14
lines changed Original file line number Diff line number Diff line change 35
35
"zone.js" : " ^0.6.23"
36
36
},
37
37
"devDependencies" : {
38
- "@types/lodash" : " ^4.14.37" ,
38
+ "@angular/compiler-cli" : " ^2.1.2" ,
39
+ "@angular/platform-server" : " ^2.1.2" ,
39
40
"@types/jasmine" : " ^2.2.30" ,
41
+ "@types/lodash" : " ^4.14.37" ,
40
42
"@types/node" : " ^6.0.42" ,
41
43
"angular-cli" : " 1.0.0-beta.19-3" ,
42
44
"codelyzer" : " 1.0.0-beta.1" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " toastr-ng2" ,
3
- "version" : " 1.5.0 " ,
3
+ "version" : " 1.5.5 " ,
4
4
"description" : " Toastr for Angular 2" ,
5
5
"main" : " ./toastr.js" ,
6
6
"typings" : " ./toastr.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
+ import { CommonModule } from '@angular/common' ;
2
3
import { BrowserModule } from '@angular/platform-browser' ;
3
4
4
5
import { Toast } from './toast-component' ;
@@ -8,7 +9,7 @@ import { OverlayContainer } from './overlay/overlay-container';
8
9
import { Overlay } from './overlay/overlay' ;
9
10
10
11
@NgModule ( {
11
- imports : [ BrowserModule ] ,
12
+ imports : [ BrowserModule , CommonModule ] ,
12
13
exports : [ Toast ] ,
13
14
declarations : [ Toast ] ,
14
15
entryComponents : [ Toast ] ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "declaration" : false ,
4
- "emitDecoratorMetadata" : true ,
5
- "experimentalDecorators" : true ,
6
- "lib" : [" es6" , " dom" ],
7
- "mapRoot" : " ./" ,
3
+ "declaration" : true ,
4
+ "target" : " es5" ,
8
5
"module" : " commonjs" ,
6
+ "lib" : [" es6" , " dom" ],
9
7
"moduleResolution" : " node" ,
10
8
"outDir" : " ../../deploy" ,
11
9
"sourceMap" : true ,
12
- "target" : " es5" ,
10
+ "emitDecoratorMetadata" : true ,
11
+ "experimentalDecorators" : true ,
12
+ "removeComments" : false ,
13
+ "noImplicitAny" : true ,
14
+ "suppressImplicitAnyIndexErrors" : true ,
13
15
"typeRoots" : [
14
- " ../node_modules/@types"
16
+ " ../../ node_modules/@types/ "
15
17
]
16
- }
18
+ },
19
+ "angularCompilerOptions" : {
20
+ "genDir" : " ../../deploy"
21
+ },
22
+ "exclude" : [
23
+ " node_modules"
24
+ ]
17
25
}
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ set -exu
5
5
# into the ./deploy folder. This script should be run from the root of the project
6
6
7
7
# Clear dist/ and deploy/ so that we guarantee there are no stale artifacts.
8
- rm -rf ./ dist/out-tsc
9
- rm -rf ./ deploy
8
+ rm -rf dist
9
+ rm -rf deploy
10
10
11
11
# compile src directory and create d.ts files
12
- ./node_modules/.bin/tsc -p ./src/lib -d
12
+ ./node_modules/.bin/ngc -p ./src/lib/tsconfig.json -d
13
13
14
14
# copy root readme and license to deployment folder
15
15
# for multiple
You can’t perform that action at this time.
0 commit comments