From 1e33df0f9d528f32504e43e9cc86063ef076ed9f Mon Sep 17 00:00:00 2001 From: gimyboya Date: Wed, 23 May 2018 01:17:41 +0800 Subject: [PATCH 1/2] fix(package.json): fixed package.json entry point fixed the `package.json` entry point and added type definition option --- package.json | 17 ++++++++++++++++- tsconfig.json | 10 +++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index da13586..00e04a3 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "type": "git", "url": "https://github.com/NEM-Apostille/Apostille-library" }, - "main": "dist/index.ts", + "main": "dist/index.js", + "typings": "dist/index.d.ts", "scripts": { "commit": "git-cz", "prebuild": "rimraf dist", @@ -29,6 +30,20 @@ "semantic-release": "semantic-release" }, "author": "gimyboya ", + "contributors": [ + { + "name": "gimyboya", + "email": "amine@luxtag.io" + }, + { + "name": "aiz", + "email": "aiz@luxtag.io" + }, + { + "name": "jeff", + "email": "jeff@luxtag.io" + } + ], "license": "MIT", "dependencies": { "@types/crypto-js": "^3.1.39", diff --git a/tsconfig.json b/tsconfig.json index 01ee2bd..ed17ee7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { /* Basic Options */ - "target": "ES5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ + "target": "ES2016", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "lib": [ "es2016", @@ -65,7 +65,15 @@ // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ "skipLibCheck": true, }, + "files": [ + "index.ts" + ], "exclude": [ + "node_modules", + "dist", "**/tests/*" + ], + "include": [ + "src/**/*.ts" ] } \ No newline at end of file From efa2f11cb01c01106a20b3ca48eaac00b331ed83 Mon Sep 17 00:00:00 2001 From: gimyboya Date: Wed, 23 May 2018 02:08:20 +0800 Subject: [PATCH 2/2] chore(PeerDependencies): added peer dependencies Added `nem2-sdk` `nem-sdk` and `rxjs` as peer deps --- package-lock.json | 19 +++++++++++++------ package.json | 5 +++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5a75cc0..b13fe38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7120,6 +7120,14 @@ "ws": "^3.3.1" }, "dependencies": { + "rxjs": { + "version": "5.5.10", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.10.tgz", + "integrity": "sha512-SRjimIDUHJkon+2hFo7xnvNC4ZEHGzCRwh9P7nzX3zPkCGFEg/tuElrNR7L/rZMagnK2JeH2jQwPRpmyXyLB6A==", + "requires": { + "symbol-observable": "1.0.1" + } + }, "ws": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", @@ -8640,11 +8648,11 @@ "integrity": "sha1-pfE/957zt0D+MKqAP7CfmIBdR4I=" }, "rxjs": { - "version": "5.5.8", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.8.tgz", - "integrity": "sha512-Bz7qou7VAIoGiglJZbzbXa4vpX5BmTTN2Dj/se6+SwADtw4SihqBIiEa7VmTXJ8pynvq0iFr5Gx9VLyye1rIxQ==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.1.0.tgz", + "integrity": "sha512-lMZdl6xbHJCSb5lmnb6nOhsoBVCyoDC5LDJQK9WWyq+tsI7KnlDIZ0r0AZAlBpRPLbwQA9kzSBAZwNIZEZ+hcw==", "requires": { - "symbol-observable": "1.0.1" + "tslib": "^1.9.0" } }, "safe-buffer": { @@ -10516,8 +10524,7 @@ "tslib": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", - "integrity": "sha1-43qG/ajLuvI6BX9HPJ9Nxk5fwug=", - "dev": true + "integrity": "sha1-43qG/ajLuvI6BX9HPJ9Nxk5fwug=" }, "tslint": { "version": "5.10.0", diff --git a/package.json b/package.json index 00e04a3..32ec50f 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,11 @@ "typescript": "^2.8.3", "validate-commit-msg": "^2.14.0" }, + "peerDependencies": { + "nem2-sdk": "^0.9.2", + "nem-sdk": "^1.6.4", + "rxjs": "^5.5.2" + }, "files": [ "dist" ],