@rws-framework/client 2.9.18 → 2.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ function setupTsConfig(tsConfigPath, executionDir) {
35
35
  tsConfig['include'] = [];
36
36
  } else {
37
37
  tsConfig['include'] = tsConfig['include'].filter((inc) => {
38
- if(inc === 'src'){
38
+ if(inc === 'src/index.ts'){
39
39
  return true;
40
40
  }
41
41
 
@@ -44,9 +44,9 @@ function setupTsConfig(tsConfigPath, executionDir) {
44
44
  }
45
45
 
46
46
 
47
- if (!tsConfig['include'].includes('src')) {
47
+ if (!tsConfig['include'].includes('src/index.ts')) {
48
48
  console.log(chalk.blueBright('[RWS TS CONFIG]'), 'adding RWS project typescript code to project tsconfig.json');
49
- tsConfig['include'].unshift('src');
49
+ tsConfig['include'].unshift('src/index.ts');
50
50
  changed = true;
51
51
  }
52
52
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.9.18",
4
+ "version": "2.9.19",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -41,6 +41,8 @@ async function loadPartedComponents(this: RWSClientInstance): Promise<RWSInfoTyp
41
41
  function defineAllComponents() {
42
42
  const richWindowComponents: RWSWindowComponentRegister = (window as Window & RWSWindow).RWS.components;
43
43
 
44
+ console.log({richWindowComponents})
45
+
44
46
  Object.keys(richWindowComponents).map(key => richWindowComponents[key].component).forEach((el: IWithCompose<RWSViewComponent>) => {
45
47
  el.define(el as any, el.definition);
46
48
  });
package/src/client.ts CHANGED
@@ -110,6 +110,7 @@ class RWSClient {
110
110
 
111
111
  setBackendRoutes(routes: IBackendRoute[]): RWSClient {
112
112
  this.config.backendRoutes = routes;
113
+ this.appConfig.set('backendRoutes', routes);
113
114
  return this;
114
115
  }
115
116
 
package/tsconfig.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "@rws-framework/foundation": ["foundation"]
23
23
  },
24
24
  "include": [
25
- "src",
25
+ "src/index.ts",
26
26
  "types/docs-typings.d.ts"
27
27
  ],
28
28
  "exclude": [