@batijs/build 0.0.22 → 0.0.24
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/exec.js +3 -0
- package/package.json +5 -4
package/dist/exec.js
CHANGED
|
@@ -35,6 +35,8 @@ async function* walk(dir) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
function transformFileAfterExec(filepath, fileContent) {
|
|
38
|
+
if (fileContent === void 0 || fileContent === null)
|
|
39
|
+
return null;
|
|
38
40
|
const parsed = path.parse(filepath);
|
|
39
41
|
const ext = parsed.ext || parsed.name;
|
|
40
42
|
switch (ext) {
|
|
@@ -43,6 +45,7 @@ function transformFileAfterExec(filepath, fileContent) {
|
|
|
43
45
|
case ".tsx":
|
|
44
46
|
case ".jsx":
|
|
45
47
|
case ".env":
|
|
48
|
+
case ".html":
|
|
46
49
|
return fileContent;
|
|
47
50
|
case ".json":
|
|
48
51
|
return JSON.stringify(fileContent, null, 2);
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/build",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
7
7
|
"author": "",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@types/node": "^16.18.
|
|
11
|
-
"
|
|
10
|
+
"@types/node": "^16.18.36",
|
|
11
|
+
"tsup": "^6.7.0",
|
|
12
|
+
"@batijs/tsup": "0.0.24"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@batijs/core": "0.0.
|
|
15
|
+
"@batijs/core": "0.0.24"
|
|
15
16
|
},
|
|
16
17
|
"main": "./dist/exec.js",
|
|
17
18
|
"module": "./dist/exec.js",
|