tshtml-loader 1.1.5 → 1.1.6

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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
3
  var fs_1 = require("fs");
4
+ var path = require("node:path");
4
5
  var index_1 = require("./index");
5
6
  if (process.argv.length !== 3) {
6
7
  console.error("Please specify one .tshtml file");
@@ -9,7 +10,7 @@ if (process.argv.length !== 3) {
9
10
  var fileName = process.argv[2];
10
11
  fs_1.readFile(fileName, { encoding: 'utf-8' }, function (err, data) {
11
12
  if (!err) {
12
- var result = index_1.executeTemplate(data, "test.html");
13
+ var result = index_1.executeTemplate(data, path.join(__dirname, "/test.html"));
13
14
  var htmlResult = index_1.templateToString(result.exports["default"]);
14
15
  process.stdout.write(htmlResult);
15
16
  }
package/lib/index.js CHANGED
@@ -99,7 +99,8 @@ function compileCode(code, fileName) {
99
99
  if (compilerService == null) {
100
100
  compilerService = ts_node_1.register({
101
101
  compilerOptions: {
102
- module: "CommonJS"
102
+ module: "CommonJS",
103
+ target: "es2015"
103
104
  }
104
105
  });
105
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tshtml-loader",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -13,15 +13,15 @@
13
13
  "author": "LOGEX Group",
14
14
  "license": "MIT",
15
15
  "devDependencies": {
16
- "@types/lodash": "^4.14.168",
17
- "@types/node": "^14.14.27",
18
- "@types/webpack": "^4.41.26"
16
+ "@types/lodash": "4.14.178",
17
+ "@types/node": "16.11.7",
18
+ "@types/webpack": "4.41.26"
19
19
  },
20
20
  "dependencies": {
21
- "lodash": "^4.17.20",
22
- "ts-node": "^9.1.1",
23
- "tsconfig-paths": "^3.9.0",
24
- "tshtml": "^1.1.5",
25
- "typescript": "4.1.5"
21
+ "lodash": "^4.17.21",
22
+ "ts-node": "^10.5.0",
23
+ "tsconfig-paths": "^3.12.0",
24
+ "tshtml": "^1.1.6",
25
+ "typescript": "4.3.5"
26
26
  }
27
27
  }