Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.

Commit cfb7b52

Browse files
committed
chore: update tsd to typings
1 parent 340628b commit cfb7b52

File tree

5 files changed

+16
-32
lines changed

5 files changed

+16
-32
lines changed

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"url": "https://github.com/angular/universal-starter.git"
88
},
99
"scripts": {
10-
"postinstall": "./node_modules/.bin/tsd install node express --save",
10+
"clean:ng2": "./node_modules/.bin/rimraf node_modules/angular2/manual_typings",
11+
"postinstall": "./node_modules/.bin/typings install && npm run clean:ng2",
1112
"watch": "./node_modules/.bin/webpack --watch",
1213
"build": "./node_modules/.bin/webpack",
1314
"prestart": "npm run build",
@@ -37,9 +38,11 @@
3738
},
3839
"devDependencies": {
3940
"nodemon": "^1.8.1",
41+
"rimraf": "^2.5.0",
4042
"ts-loader": "^0.7.2",
4143
"tsd": "^0.6.5",
4244
"typescript": "^1.7.3",
45+
"typings": "^0.6.2",
4346
"webpack": "^1.12.10",
4447
"webpack-dev-server": "^1.14.0",
4548
"webpack-merge": "^0.7.1"

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"sourceMap": true
99
},
1010
"files": [
11-
"typings/tsd.d.ts",
11+
"typings/main.d.ts",
1212
"src/client.ts",
1313
"src/server.ts"
1414
]

tsd.json

-21
This file was deleted.

typings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ambientDependencies": {
3+
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#6697d6f7dadbf5773cb40ecda35a76027e0783b2",
4+
"express": "github:DefinitelyTyped/DefinitelyTyped/express/express.d.ts#2e7a477ac2b6471055aa6e0e56b333e8f327d6b7",
5+
"mime": "github:DefinitelyTyped/DefinitelyTyped/mime/mime.d.ts#2e7a477ac2b6471055aa6e0e56b333e8f327d6b7",
6+
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#2e7a477ac2b6471055aa6e0e56b333e8f327d6b7",
7+
"serve-static": "github:DefinitelyTyped/DefinitelyTyped/serve-static/serve-static.d.ts#2e7a477ac2b6471055aa6e0e56b333e8f327d6b7",
8+
"zone": "github:angular/DefinitelyTyped/zone/zone.d.ts#31e7317c9a0793857109236ef7c7f223305a8aa9",
9+
"ng2": "github:gdi2290/typings-ng2/ng2.d.ts#32998ff5584c0eab0cd9dc7704abb1c5c450701c"
10+
}
11+
}

webpack.config.js

-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ var common = {
1010
{
1111
test: /\.ts$/,
1212
loader: 'ts-loader',
13-
query: {
14-
'ignoreDiagnostics': [
15-
2403, // 2403 -> Subsequent variable declarations
16-
2420, // 2420 -> Class incorrectly implements interface
17-
2300, // 2300 -> Duplicate identifier
18-
2374, // 2374 -> Duplicate number index signature
19-
2375 // 2375 -> Duplicate string index signature
20-
]
21-
},
2213
exclude: [ /node_modules/ ]
2314
}
2415
]

0 commit comments

Comments
 (0)