Permalink
Browse files

Package

  • Loading branch information...
1 parent 410b3d2 commit 7f77b8f06944a887c4b6e33593fdf5ef7fcfb3f4 @mlynch mlynch committed Sep 9, 2016
Showing with 20 additions and 3 deletions.
  1. +5 −3 package.json
  2. +15 −0 tsconfig-esm.json
View
@@ -3,11 +3,12 @@
"version": "1.3.21",
"description": "Native plugin wrappers for Cordova and Ionic with TypeScript, ES6+, Promise and Observable support",
"main": "dist/index.js",
+ "module": "dist/esm/index.js",
"files": [
"dist"
],
"dependencies": {
- "rxjs": "^5.0.0-beta.6"
+ "@reactivex/rxjs": "^5.0.0-beta.11"
},
"devDependencies": {
"browserify": "^13.0.1",
@@ -41,7 +42,7 @@
"tsify": "~1.0.4",
"tslint": "^3.8.1",
"tslint-ionic-rules": "0.0.5",
- "typescript": "^1.8.10",
+ "typescript": "^2.0.2",
"watchify": "~3.7.0"
},
"scripts": {
@@ -50,8 +51,9 @@
"start": "npm run test:watch",
"lint": "./node_modules/.bin/gulp lint",
"watch": "./node_modules/.bin/tsc -w",
- "build": "npm run lint && npm run build:js && npm run build:bundle && npm run build:minify",
+ "build": "npm run lint && npm run build:js && npm run build:esm && npm run build:bundle && npm run build:minify",
"build:js": "./node_modules/.bin/tsc",
+ "build:esm": "./node_modules/.bin/tsc -p ./tsconfig-esm.json",
"build:bundle": "./node_modules/.bin/browserify dist/index.js > dist/ionic.native.js",
"build:minify": "./node_modules/.bin/gulp minify:dist",
"changelog": "./node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
View
@@ -0,0 +1,15 @@
+{
+ "compilerOptions": {
+ "module": "es2015",
+ "target": "ES5",
+ "sourceMap": true,
+ "declaration": true,
+ "experimentalDecorators": true,
+ "outDir": "dist/esm",
+ "moduleResolution": "node"
+ },
+ "files": [
+ "typings/es6-shim/es6-shim.d.ts",
+ "src/index.ts"
+ ]
+}

0 comments on commit 7f77b8f

Please sign in to comment.