Skip to content

Commit

Permalink
release 1.5.5 and fix AOT
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed Nov 9, 2016
1 parent 7de0a3b commit b0ee4c8
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
"zone.js": "^0.6.23"
},
"devDependencies": {
"@types/lodash": "^4.14.37",
"@angular/compiler-cli": "^2.1.2",
"@angular/platform-server": "^2.1.2",
"@types/jasmine": "^2.2.30",
"@types/lodash": "^4.14.37",
"@types/node": "^6.0.42",
"angular-cli": "1.0.0-beta.19-3",
"codelyzer": "1.0.0-beta.1",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toastr-ng2",
"version": "1.5.0",
"version": "1.5.5",
"description": "Toastr for Angular 2",
"main": "./toastr.js",
"typings": "./toastr.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/lib/toastr-module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';

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

@NgModule({
imports: [BrowserModule],
imports: [BrowserModule, CommonModule],
exports: [Toast],
declarations: [Toast],
entryComponents: [Toast],
Expand Down
24 changes: 16 additions & 8 deletions src/lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{
"compilerOptions": {
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es6", "dom"],
"mapRoot": "./",
"declaration": true,
"target": "es5",
"module": "commonjs",
"lib": ["es6", "dom"],
"moduleResolution": "node",
"outDir": "../../deploy",
"sourceMap": true,
"target": "es5",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": [
"../node_modules/@types"
"../../node_modules/@types/"
]
}
},
"angularCompilerOptions": {
"genDir": "../../deploy"
},
"exclude": [
"node_modules"
]
}
6 changes: 3 additions & 3 deletions stage-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ set -exu
# into the ./deploy folder. This script should be run from the root of the project

# Clear dist/ and deploy/ so that we guarantee there are no stale artifacts.
rm -rf ./dist/out-tsc
rm -rf ./deploy
rm -rf dist
rm -rf deploy

# compile src directory and create d.ts files
./node_modules/.bin/tsc -p ./src/lib -d
./node_modules/.bin/ngc -p ./src/lib/tsconfig.json -d

# copy root readme and license to deployment folder
# for multiple
Expand Down

0 comments on commit b0ee4c8

Please sign in to comment.