@rws-framework/client 2.1.2 → 2.1.3

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rws-framework/client",
3
3
  "private": false,
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
7
7
  "docs": "typedoc --tsconfig ./tsconfig.json"
@@ -106,11 +106,13 @@ module.exports = function(content) {
106
106
  styles = `import styles from './${stylesPath}'`;
107
107
  }
108
108
 
109
- const templateExists = fs.existsSync(path.dirname(filePath) + '/template.html', 'utf-8');
109
+ const templateName = 'template';
110
+ const templatePath = path.dirname(filePath) + `/${templateName}.html`;
111
+ const templateExists = fs.existsSync(templatePath, 'utf-8');
110
112
  let template = 'const template: null = null;';
111
113
 
112
114
  if(templateExists){
113
- template = `import template from './${templatePath}'`;
115
+ template = `const template: any = T.html\`${fs.readFileSync(templatePath, 'utf-8')}\`;`;
114
116
  }
115
117
 
116
118
  processedContent = `