fix(ts): use old ts version for 1.3.x #567

This commit is contained in:
Max Lynch 2016-09-22 13:11:43 -05:00
parent b6b0359fcf
commit 6a19c8cf48
2 changed files with 21 additions and 9 deletions

View File

@ -1,10 +1,8 @@
{ {
"name": "ionic-native", "name": "ionic-native",
"version": "1.3.24", "version": "1.3.25",
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support", "description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
"main": "dist/es5/index.js", "main": "dist/index.js",
"typings": "dist/es5/index.d.ts",
"module": "dist/esm/index.js",
"files": [ "files": [
"dist" "dist"
], ],
@ -43,7 +41,7 @@
"tsify": "~1.0.4", "tsify": "~1.0.4",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"tslint-ionic-rules": "0.0.5", "tslint-ionic-rules": "0.0.5",
"typescript": "^2.0.2", "typescript": "^1.8.10",
"watchify": "~3.7.0" "watchify": "~3.7.0"
}, },
"scripts": { "scripts": {
@ -52,10 +50,9 @@
"start": "npm run test:watch", "start": "npm run test:watch",
"lint": "gulp lint", "lint": "gulp lint",
"watch": "tsc -w", "watch": "tsc -w",
"build": "npm run lint && npm run build:js && npm run build:esm && npm run build:bundle && npm run build:minify", "build": "npm run lint && npm run build:js && npm run build:bundle && npm run build:minify",
"build:js": "tsc -p tsconfig-es5.json", "build:js": "tsc",
"build:esm": "tsc -p tsconfig-esm.json", "build:bundle": "browserify dist/index.js > dist/ionic.native.js",
"build:bundle": "browserify dist/es5/index.js > dist/ionic.native.js",
"build:minify": "gulp minify:dist", "build:minify": "gulp minify:dist",
"shipit": "npm run build && npm publish && bash ./scripts/bower.sh", "shipit": "npm run build && npm publish && bash ./scripts/bower.sh",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",

15
tsconfig.json Normal file
View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"sourceMap": true,
"declaration": true,
"experimentalDecorators": true,
"outDir": "dist",
"moduleResolution": "node"
},
"files": [
"typings/es6-shim/es6-shim.d.ts",
"src/index.ts"
]
}