Skip to content

Commit 1f76e3c

Browse files
committed
Package script publish fixes and lint fixes
1 parent 599a819 commit 1f76e3c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-cache",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "Ionic cache service - cache request, data, promises etc.",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
@@ -12,7 +12,8 @@
1212
"test": "karma start karma.conf.js --single-run",
1313
"test:watch": "karma start karma.conf.js",
1414
"build": "rm -rf dist aot && ngc",
15-
"lint": "tslint \"src/**/*.ts\""
15+
"lint": "tslint \"src/**/*.ts\"",
16+
"prepublish": "npm run lint && npm run build"
1617
},
1718
"repository": {
1819
"type": "git",

src/cache.service.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('Observable Caching', () => {
111111

112112
let mockData: any = {
113113
hello: 'Hello world"s ',
114-
world: "It's beautiful day"
114+
world: "It's beautiful day" // tslint:disable-line
115115
};
116116

117117
let observable = Observable.of(mockData);
@@ -176,7 +176,7 @@ describe('Observable caching errors', () => {
176176

177177
let mockData: any = {
178178
hello: 'Hello world"s ',
179-
world: "It's beautiful day"
179+
world: "It's beautiful day" // tslint:disable-line
180180
};
181181

182182
let observableError = Observable.throw(mockData);

0 commit comments

Comments
 (0)