From: ChrisC Date: Mon, 31 Aug 2020 15:15:30 +0000 (+0200) Subject: Fix Build X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c3e33ce9d5e65172122389c130721d9c776a7e5e;p=sdc%2Fsdc-pubsub.git Fix Build Fix build issue, updating TS and moving some files around to meet the new version requirements Issue-ID: SDC-3203 Signed-off-by: ChrisC Change-Id: I16ad0af22c602194ed645d115e61f6692b9229b9 --- diff --git a/index.ts b/index.ts deleted file mode 100644 index 7057985..0000000 --- a/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { BasePubSub, IPubSubEvent, ISubscriber } from './src/base-pubsub'; -import { PluginPubSub } from './src/plugin-pubsub'; - -export { BasePubSub, PluginPubSub, IPubSubEvent, ISubscriber }; diff --git a/package.json b/package.json index f097271..f1dce68 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "ts-loader": "^5.3.2", "tslint": "^5.11.0", "tslint-sonarts": "^1.7.0", - "typescript": "2.7.2", + "typescript": "3.3.4000", "webpack": "4.12.0", "webpack-cli": "^3.1.0" } diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..4d2efa1 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,4 @@ +import { BasePubSub, IPubSubEvent, ISubscriber } from './base-pubsub'; +import { PluginPubSub } from './plugin-pubsub'; + +export { BasePubSub, PluginPubSub, IPubSubEvent, ISubscriber }; diff --git a/tsconfig.json b/tsconfig.json index 25cb4c6..b4ab1b4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,10 +9,11 @@ "forceConsistentCasingInFileNames": true, "sourceMap": true, "declaration": true, - "rootDir": "src" + "rootDir": "src", + "skipLibCheck": true }, "files": [ - "./index.ts" + "./src/index.ts" ], "compileOnSave": false, "buildOnSave": false diff --git a/webpack.config.js b/webpack.config.js index 2806bd9..b8fdd87 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ var webpack = require("webpack"); var UglifyJsPlugin = require("uglifyjs-webpack-plugin"); var PATHS = { - entryPoint: path.resolve(__dirname, './index.ts'), + entryPoint: path.resolve(__dirname, './src/index.ts'), bundles: path.resolve(__dirname, 'dist'), };