diff --git a/package.json b/package.json index 1e2d81d7..40fe2503 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,8 @@ { "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", - "main": "dist/es5/index.js", - "typings": "dist/es5/index.d.ts", - "module": "dist/esm/index.js", + "main": "dist/index.js", "files": [ "dist" ], @@ -43,7 +41,7 @@ "tsify": "~1.0.4", "tslint": "^3.8.1", "tslint-ionic-rules": "0.0.5", - "typescript": "^2.0.2", + "typescript": "^1.8.10", "watchify": "~3.7.0" }, "scripts": { @@ -52,10 +50,9 @@ "start": "npm run test:watch", "lint": "gulp lint", "watch": "tsc -w", - "build": "npm run lint && npm run build:js && npm run build:esm && npm run build:bundle && npm run build:minify", - "build:js": "tsc -p tsconfig-es5.json", - "build:esm": "tsc -p tsconfig-esm.json", - "build:bundle": "browserify dist/es5/index.js > dist/ionic.native.js", + "build": "npm run lint && npm run build:js && npm run build:bundle && npm run build:minify", + "build:js": "tsc", + "build:bundle": "browserify dist/index.js > dist/ionic.native.js", "build:minify": "gulp minify:dist", "shipit": "npm run build && npm publish && bash ./scripts/bower.sh", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..be48d5b1 --- /dev/null +++ b/tsconfig.json @@ -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" + ] +}