Skip to content

Commit b0ee4c8

Browse files
committed
release 1.5.5 and fix AOT
1 parent 7de0a3b commit b0ee4c8

File tree

5 files changed

+25
-14
lines changed

5 files changed

+25
-14
lines changed

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@
3535
"zone.js": "^0.6.23"
3636
},
3737
"devDependencies": {
38-
"@types/lodash": "^4.14.37",
38+
"@angular/compiler-cli": "^2.1.2",
39+
"@angular/platform-server": "^2.1.2",
3940
"@types/jasmine": "^2.2.30",
41+
"@types/lodash": "^4.14.37",
4042
"@types/node": "^6.0.42",
4143
"angular-cli": "1.0.0-beta.19-3",
4244
"codelyzer": "1.0.0-beta.1",

src/lib/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "toastr-ng2",
3-
"version": "1.5.0",
3+
"version": "1.5.5",
44
"description": "Toastr for Angular 2",
55
"main": "./toastr.js",
66
"typings": "./toastr.d.ts",

src/lib/toastr-module.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { NgModule } from '@angular/core';
2+
import { CommonModule } from '@angular/common';
23
import { BrowserModule } from '@angular/platform-browser';
34

45
import { Toast } from './toast-component';
@@ -8,7 +9,7 @@ import { OverlayContainer } from './overlay/overlay-container';
89
import { Overlay } from './overlay/overlay';
910

1011
@NgModule({
11-
imports: [BrowserModule],
12+
imports: [BrowserModule, CommonModule],
1213
exports: [Toast],
1314
declarations: [Toast],
1415
entryComponents: [Toast],

src/lib/tsconfig.json

+16-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
{
22
"compilerOptions": {
3-
"declaration": false,
4-
"emitDecoratorMetadata": true,
5-
"experimentalDecorators": true,
6-
"lib": ["es6", "dom"],
7-
"mapRoot": "./",
3+
"declaration": true,
4+
"target": "es5",
85
"module": "commonjs",
6+
"lib": ["es6", "dom"],
97
"moduleResolution": "node",
108
"outDir": "../../deploy",
119
"sourceMap": true,
12-
"target": "es5",
10+
"emitDecoratorMetadata": true,
11+
"experimentalDecorators": true,
12+
"removeComments": false,
13+
"noImplicitAny": true,
14+
"suppressImplicitAnyIndexErrors": true,
1315
"typeRoots": [
14-
"../node_modules/@types"
16+
"../../node_modules/@types/"
1517
]
16-
}
18+
},
19+
"angularCompilerOptions": {
20+
"genDir": "../../deploy"
21+
},
22+
"exclude": [
23+
"node_modules"
24+
]
1725
}

stage-release.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ set -exu
55
# into the ./deploy folder. This script should be run from the root of the project
66

77
# 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
1010

1111
# 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
1313

1414
# copy root readme and license to deployment folder
1515
# for multiple

0 commit comments

Comments
 (0)