Skip to content

Commit f9cc498

Browse files
committed
chore: migrate to @types
1 parent e45c144 commit f9cc498

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

package.json

+24-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
{
22
"name": "codelyzer",
3-
"version": "0.0.28",
4-
"description": "A set of linters for Angular 2 applications, following https:/angular.io/styleguide.",
3+
"version": "1.0.0-beta.0",
4+
"description": "Linting for Angular 2 applications, following https:/angular.io/styleguide.",
55
"main": "index.js",
66
"scripts": {
7-
"postinstall": "typings install",
87
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
9-
"release": "rimraf dist && tsc && npm t && cp package.json README.md dist/src && ts-node build/links.ts --src ./dist/src",
8+
"release": "npm run build && npm run copy:common && npm run prepare:package && npm run build:links",
9+
"build": "rimraf dist && tsc && npm run lint && npm t",
10+
"copy:common": "cp README.md dist/src",
11+
"build:links": "ts-node build/links.ts --src ./dist/src",
12+
"prepare:package": "cat package.json | ts-node build/package.ts > dist/src/package.json",
1013
"test": "rimraf dist && tsc && mocha dist/test/*.js dist/test/**/*.js",
1114
"test:watch": "rimraf dist && tsc && mocha dist/test/*.js dist/test/**/*.js --watch",
1215
"tscv": "tsc --version",
1316
"tsc": "tsc",
1417
"tscw": "tsc --w"
1518
},
19+
"contributors": [
20+
"Minko Gechev <[email protected]>",
21+
"Preslav Semov <[email protected]>"
22+
],
1623
"repository": {
1724
"type": "git",
1825
"url": "git+https://github.com/mgechev/codelyzer.git"
@@ -36,23 +43,29 @@
3643
},
3744
"homepage": "https://github.com/mgechev/codelyzer#readme",
3845
"devDependencies": {
46+
"@angular/compiler": "^2.0.0",
47+
"@angular/core": "^2.0.0",
48+
"@types/chai": "^3.4.33",
49+
"@types/es6-shim": "^0.31.32",
50+
"@types/mocha": "^2.2.32",
51+
"@types/node": "^6.0.41",
52+
"@types/sprintf-js": "0.0.27",
3953
"chai": "^3.5.0",
4054
"chai-spies": "^0.7.1",
4155
"minimalist": "1.0.0",
4256
"mocha": "3.0.2",
4357
"rimraf": "^2.5.2",
58+
"rxjs": "^5.0.0-beta.12",
4459
"ts-node": "1.2.2",
4560
"tslint": "3.14.0",
46-
"typings": "1.3.2"
61+
"zone.js": "^0.6.21"
4762
},
4863
"peerDependencies": {
49-
"tslint": "^3.9.0"
64+
"tslint": "^3.9.0",
65+
"@angular/compiler": "^2.0.0",
66+
"@angular/core": "^2.0.0"
5067
},
5168
"dependencies": {
52-
"@angular/compiler": "^2.0.0",
53-
"@angular/core": "^2.0.0",
54-
"rxjs": "^5.0.0-beta.12",
55-
"sprintf-js": "^1.0.3",
56-
"zone.js": "^0.6.21"
69+
"sprintf-js": "^1.0.3"
5770
}
5871
}

tsconfig.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,5 @@
88
"removeComments": true,
99
"noLib": false,
1010
"outDir": "./dist"
11-
},
12-
"exclude": [
13-
"typings/browser.d.ts",
14-
"typings/browser",
15-
"node_modules"
16-
]
11+
}
1712
}

0 commit comments

Comments
 (0)