diff --git a/.gitignore b/.gitignore
index 6a06cfe..24cb7a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,7 @@
src/*.js
src/*.js.map
+src/*.d.ts
build
node_modules
+lib
+.DS_Store
diff --git a/README.md b/README.md
index e84f31b..6009da7 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ CDN
-
+
```
## Usage
@@ -47,6 +47,11 @@ For this example you will also need to have [RingCentral JS SDK](https://github.
Configure the web-phone
```js
+// npm import
+// import { RingCentralCallControl } from 'ringcentral-call-control';
+// or use CDN
+// window.RingCentralCallControl
+
var appClientId = '...';
var appClientSecret = '...';
var appName = '...';
diff --git a/package.json b/package.json
index 0975527..8646b3c 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "ringcentral-call-control",
- "version": "0.0.2",
- "main": "build/index.js",
+ "version": "0.0.3",
+ "main": "lib/index.js",
"license": "MIT",
"scripts": {
"prepublish": "tsc && webpack",
@@ -22,5 +22,13 @@
},
"peerDependencies": {
"ringcentral": "^3.2.2"
- }
+ },
+ "keywords": [
+ "ringcentral",
+ "callcontrol",
+ "telephony",
+ "javascript",
+ "library",
+ "typescript"
+ ]
}
diff --git a/tsconfig.json b/tsconfig.json
index cf20c61..1c863f5 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -5,8 +5,10 @@
"es6",
"dom"
],
- "sourceMap": true
+ "sourceMap": true,
+ "declaration": true,
+ "outDir": "lib"
},
- "files": ["src/index.ts"],
+ "files": ["src/index.ts", "src/Session.ts", "src/formatParty.ts"],
"compileOnSave": true
}