@batijs/build 0.0.197 → 0.0.199
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 +3 -6
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -69,19 +69,16 @@ async function safeWriteFile(destination, content) {
|
|
|
69
69
|
await writeFile(destination, content, { encoding: "utf-8" });
|
|
70
70
|
}
|
|
71
71
|
async function* walk(dir) {
|
|
72
|
-
if (!existsSync(dir))
|
|
73
|
-
return;
|
|
72
|
+
if (!existsSync(dir)) return;
|
|
74
73
|
for await (const d of await opendir(dir)) {
|
|
75
74
|
const entry = path.join(dir, d.name);
|
|
76
75
|
if (d.isDirectory()) {
|
|
77
76
|
yield* walk(entry);
|
|
78
|
-
} else if (d.isFile())
|
|
79
|
-
yield entry;
|
|
77
|
+
} else if (d.isFile()) yield entry;
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
80
|
function transformFileAfterExec(filepath, fileContent) {
|
|
83
|
-
if (fileContent === void 0 || fileContent === null)
|
|
84
|
-
return null;
|
|
81
|
+
if (fileContent === void 0 || fileContent === null) return null;
|
|
85
82
|
const parsed = path.parse(filepath);
|
|
86
83
|
const toTest = [parsed.base, parsed.ext, parsed.name].filter(Boolean);
|
|
87
84
|
for (const ext of toTest) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/build",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.199",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@types/node": "^18.19.14",
|
|
12
|
-
"tsup": "^8.0
|
|
13
|
-
"@batijs/compile": "0.0.
|
|
12
|
+
"tsup": "^8.1.0",
|
|
13
|
+
"@batijs/compile": "0.0.199"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@batijs/core": "0.0.
|
|
16
|
+
"@batijs/core": "0.0.199"
|
|
17
17
|
},
|
|
18
18
|
"main": "./dist/index.js",
|
|
19
19
|
"module": "./dist/index.js",
|