chore: update TS to enable non-nullable types

This commit is contained in:
vsavkin 2016-05-21 17:35:36 -07:00
parent 47585498af
commit aee764d14d
4 changed files with 11 additions and 7 deletions

View File

@ -12,7 +12,7 @@
"build_npm": "rm -rf dist && tsc -p tsconfig.publish.es5.json && tsc -p tsconfig.publish.es6.json", "build_npm": "rm -rf dist && tsc -p tsconfig.publish.es5.json && tsc -p tsconfig.publish.es6.json",
"postbuild_npm": "cp package.json README.md dist/ && npm run rewrite_npm_package", "postbuild_npm": "cp package.json README.md dist/ && npm run rewrite_npm_package",
"rewrite_npm_package": "node --harmony_destructuring tools/rewrite-published-package.js", "rewrite_npm_package": "node --harmony_destructuring tools/rewrite-published-package.js",
"build_bundle": "cp -r src router && tsc typings/main.d.ts src/router.ts --rootDir . --module system -t es5 --outFile dist/bundles/router.js --moduleResolution node --emitDecoratorMetadata --experimentalDecorators" "build_bundle": "cp -r src router && tsc typings/index.d.ts src/router.ts --rootDir . --module system -t es5 --outFile dist/bundles/router.js --moduleResolution node --emitDecoratorMetadata --experimentalDecorators"
}, },
"keywords": [ "keywords": [
"angular2", "angular2",
@ -30,10 +30,10 @@
}, },
"homepage": "https://github.com/angular/vladivostok#readme", "homepage": "https://github.com/angular/vladivostok#readme",
"dependencies": { "dependencies": {
"@angular/core": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/common": "2.0.0-rc.1", "@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1", "@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1", "@angular/platform-browser-dynamic": "2.0.0-rc.1",
"rxjs": "5.0.0-beta.6" "rxjs": "5.0.0-beta.6"
}, },
@ -60,8 +60,8 @@
"systemjs-builder": "^0.15.7", "systemjs-builder": "^0.15.7",
"traceur": "0.0.96", "traceur": "0.0.96",
"tsd": "^0.6.5", "tsd": "^0.6.5",
"typescript": "1.8.9", "typescript": "^1.9.0-dev.20160521-1.0",
"typings": "^0.6.2", "typings": "^1.0.4",
"zone.js": "^0.6.6" "zone.js": "^0.6.6"
}, },
"typings": "dist/router.d.ts" "typings": "dist/router.d.ts"

View File

@ -2,6 +2,7 @@
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"strictNullChecks": true,
"module": "commonjs", "module": "commonjs",
"target": "es5", "target": "es5",
"noImplicitAny": false, "noImplicitAny": false,
@ -15,7 +16,8 @@
"files": [ "files": [
"src/router.ts", "src/router.ts",
"test/tree.spec.ts", "test/tree.spec.ts",
"test/url_serializer.spec.ts",
"test/router.spec.ts", "test/router.spec.ts",
"typings/main.d.ts" "typings/index.d.ts"
] ]
} }

View File

@ -2,6 +2,7 @@
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"strictNullChecks": true,
"module": "commonjs", "module": "commonjs",
"target": "es5", "target": "es5",
"noImplicitAny": false, "noImplicitAny": false,
@ -14,6 +15,6 @@
}, },
"files": [ "files": [
"src/router.ts", "src/router.ts",
"typings/main.d.ts" "typings/index.d.ts"
] ]
} }

View File

@ -2,6 +2,7 @@
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "experimentalDecorators": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"strictNullChecks": true,
"target": "es6", "target": "es6",
"noImplicitAny": false, "noImplicitAny": false,
"outDir": "dist/es6", "outDir": "dist/es6",