From c3e33ce9d5e65172122389c130721d9c776a7e5e Mon Sep 17 00:00:00 2001 From: ChrisC Date: Mon, 31 Aug 2020 17:15:30 +0200 Subject: 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 --- index.ts | 4 ---- package.json | 2 +- src/index.ts | 4 ++++ tsconfig.json | 5 +++-- webpack.config.js | 2 +- 5 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 index.ts create mode 100644 src/index.ts 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'), }; -- cgit 1.2.3-korg