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.
- package/lib/export-template.js +2 -1
- package/lib/index.js +2 -1
- package/package.json +9 -9
package/lib/export-template.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tshtml-loader",
|
|
3
|
-
"version": "1.1.
|
|
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": "
|
|
17
|
-
"@types/node": "
|
|
18
|
-
"@types/webpack": "
|
|
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.
|
|
22
|
-
"ts-node": "^
|
|
23
|
-
"tsconfig-paths": "^3.
|
|
24
|
-
"tshtml": "^1.1.
|
|
25
|
-
"typescript": "4.
|
|
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
|
}
|