@lvce-editor/typescript-compile-process 2.2.0 → 3.0.0
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/dist/index.js +1 -1
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -119,7 +119,7 @@ const transpileTypeScript = async code => {
|
|
|
119
119
|
|
|
120
120
|
const transpileTypeScriptAtPath = async (inPath, outPath) => {
|
|
121
121
|
try {
|
|
122
|
-
const content = await readFile(inPath, '
|
|
122
|
+
const content = await readFile(inPath, 'utf8');
|
|
123
123
|
const newContent = await transpileTypeScript(content);
|
|
124
124
|
await writeFile(outPath, newContent);
|
|
125
125
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/typescript-compile-process",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "TypeScript Compile Process",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"bin": "bin/typescriptCompileProcess.js",
|
|
7
|
-
"type": "module",
|
|
8
5
|
"keywords": [
|
|
9
6
|
"Lvce Editor"
|
|
10
7
|
],
|
|
11
|
-
"author": "Lvce Editor",
|
|
12
|
-
"license": "MIT",
|
|
13
8
|
"repository": {
|
|
14
9
|
"type": "git",
|
|
15
10
|
"url": "https://github.com/lvce-editor/typescript-compile-process.git"
|
|
16
11
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"@lvce-editor/command": "^1.2.0",
|
|
23
|
-
"@lvce-editor/rpc": "^1.21.0",
|
|
24
|
-
"@lvce-editor/verror": "^1.6.0"
|
|
25
|
-
},
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Lvce Editor",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"bin": "bin/typescriptCompileProcess.js",
|
|
26
17
|
"xo": {
|
|
27
18
|
"rules": {
|
|
28
19
|
"unicorn/filename-case": "off",
|
|
@@ -67,5 +58,14 @@
|
|
|
67
58
|
"ignores": [
|
|
68
59
|
"distmin"
|
|
69
60
|
]
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@lvce-editor/assert": "^1.3.0",
|
|
64
|
+
"@lvce-editor/command": "^1.2.0",
|
|
65
|
+
"@lvce-editor/rpc": "^2.2.0",
|
|
66
|
+
"@lvce-editor/verror": "^1.6.0"
|
|
67
|
+
},
|
|
68
|
+
"engines": {
|
|
69
|
+
"node": ">=18"
|
|
70
70
|
}
|
|
71
71
|
}
|