Skip to content

Commit

Permalink
Package
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Sep 9, 2016
1 parent 410b3d2 commit 7f77b8f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand All @@ -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",
Expand Down
15 changes: 15 additions & 0 deletions tsconfig-esm.json
Original file line number Diff line number Diff line change
@@ -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.