Fix Build 95/111895/1
authorChrisC <christophe.closset@intl.att.com>
Mon, 31 Aug 2020 15:15:30 +0000 (17:15 +0200)
committerChrisC <christophe.closset@intl.att.com>
Mon, 31 Aug 2020 15:15:30 +0000 (17:15 +0200)
Fix build issue, updating TS and moving some files around to meet the new version requirements

Issue-ID: SDC-3203
Signed-off-by: ChrisC <christophe.closset@intl.att.com>
Change-Id: I16ad0af22c602194ed645d115e61f6692b9229b9

index.ts [deleted file]
package.json
src/index.ts [new file with mode: 0644]
tsconfig.json
webpack.config.js

diff --git a/index.ts b/index.ts
deleted file mode 100644 (file)
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 };
index f097271..f1dce68 100644 (file)
@@ -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 (file)
index 0000000..4d2efa1
--- /dev/null
@@ -0,0 +1,4 @@
+import { BasePubSub, IPubSubEvent, ISubscriber } from './base-pubsub';
+import { PluginPubSub } from './plugin-pubsub';
+
+export { BasePubSub, PluginPubSub, IPubSubEvent, ISubscriber };
index 25cb4c6..b4ab1b4 100644 (file)
@@ -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
index 2806bd9..b8fdd87 100644 (file)
@@ -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'),
 };