aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChrisC <christophe.closset@intl.att.com>2020-08-31 17:15:30 +0200
committerChrisC <christophe.closset@intl.att.com>2020-08-31 17:15:30 +0200
commitc3e33ce9d5e65172122389c130721d9c776a7e5e (patch)
tree6beca77fa0bf2e14e55c84255493aeecec931149
parentebec31d19d829d93e5e0a96db3e54036c5bd1450 (diff)
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 <christophe.closset@intl.att.com> Change-Id: I16ad0af22c602194ed645d115e61f6692b9229b9
-rw-r--r--index.ts4
-rw-r--r--package.json2
-rw-r--r--src/index.ts4
-rw-r--r--tsconfig.json5
-rw-r--r--webpack.config.js2
5 files changed, 9 insertions, 8 deletions
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'),
};