@absolutejs/absolute 0.19.0-beta.684 → 0.19.0-beta.685
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/cli/index.js +12 -6
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -759,18 +759,18 @@ __export(exports_compile, {
|
|
|
759
759
|
compile: () => compile
|
|
760
760
|
});
|
|
761
761
|
var {env: env3 } = globalThis.Bun;
|
|
762
|
-
import { existsSync as existsSync9, readdirSync, readFileSync as readFileSync9, unlinkSync } from "fs";
|
|
762
|
+
import { existsSync as existsSync9, readdirSync as readdirSync2, readFileSync as readFileSync9, unlinkSync as unlinkSync2 } from "fs";
|
|
763
763
|
import { basename as basename2, join as join6, relative, resolve as resolve7 } from "path";
|
|
764
764
|
var cliTag3 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[cli]\x1B[0m ${color}${message}\x1B[0m`, collectFiles2 = (dir) => {
|
|
765
765
|
const result = [];
|
|
766
|
-
let pending =
|
|
766
|
+
let pending = readdirSync2(dir, { withFileTypes: true });
|
|
767
767
|
while (pending.length > 0) {
|
|
768
768
|
const entry = pending.pop();
|
|
769
769
|
if (!entry)
|
|
770
770
|
continue;
|
|
771
771
|
const fullPath = join6(entry.parentPath, entry.name);
|
|
772
772
|
if (entry.isDirectory())
|
|
773
|
-
pending = pending.concat(
|
|
773
|
+
pending = pending.concat(readdirSync2(fullPath, { withFileTypes: true }));
|
|
774
774
|
else
|
|
775
775
|
result.push(fullPath);
|
|
776
776
|
}
|
|
@@ -1017,7 +1017,7 @@ console.log(\`
|
|
|
1017
1017
|
}
|
|
1018
1018
|
console.log(` \x1B[2m(${getDurationString(performance.now() - compileStart)})\x1B[0m`);
|
|
1019
1019
|
try {
|
|
1020
|
-
|
|
1020
|
+
unlinkSync2(entrypointPath);
|
|
1021
1021
|
} catch {}
|
|
1022
1022
|
const BYTES_PER_MB = 1048576;
|
|
1023
1023
|
const size = (Bun.file(resolvedOutfile).size / BYTES_PER_MB).toFixed(0);
|
|
@@ -2489,7 +2489,9 @@ import {
|
|
|
2489
2489
|
appendFileSync,
|
|
2490
2490
|
existsSync as existsSync8,
|
|
2491
2491
|
mkdirSync as mkdirSync4,
|
|
2492
|
+
readdirSync,
|
|
2492
2493
|
readFileSync as readFileSync8,
|
|
2494
|
+
unlinkSync,
|
|
2493
2495
|
writeFileSync as writeFileSync2
|
|
2494
2496
|
} from "fs";
|
|
2495
2497
|
import { createConnection } from "net";
|
|
@@ -3140,9 +3142,13 @@ var sanitizeLogFileName = (value) => value.replace(/[^a-zA-Z0-9._-]/g, "_") || "
|
|
|
3140
3142
|
var createWorkspaceLogSink = (appendLog) => {
|
|
3141
3143
|
const logDirectory = resolve6(".absolutejs", "workspace", "logs");
|
|
3142
3144
|
mkdirSync4(logDirectory, { recursive: true });
|
|
3143
|
-
for (const file of
|
|
3144
|
-
|
|
3145
|
+
for (const file of readdirSync(logDirectory)) {
|
|
3146
|
+
if (file.endsWith(".log")) {
|
|
3147
|
+
unlinkSync(resolve6(logDirectory, file));
|
|
3148
|
+
}
|
|
3145
3149
|
}
|
|
3150
|
+
writeFileSync2(resolve6(logDirectory, "all.log"), "");
|
|
3151
|
+
writeFileSync2(resolve6(logDirectory, "workspace.log"), "");
|
|
3146
3152
|
const initializedSources = new Set(["workspace"]);
|
|
3147
3153
|
const writeLog = (source, message, level) => {
|
|
3148
3154
|
const cleanMessage = stripAnsi2(message).trimEnd();
|
package/package.json
CHANGED
|
@@ -216,12 +216,12 @@
|
|
|
216
216
|
"main": "./dist/index.js",
|
|
217
217
|
"name": "@absolutejs/absolute",
|
|
218
218
|
"optionalDependencies": {
|
|
219
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
220
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
221
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
222
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
223
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
224
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
219
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.685",
|
|
220
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.685",
|
|
221
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.685",
|
|
222
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.685",
|
|
223
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.685",
|
|
224
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.685"
|
|
225
225
|
},
|
|
226
226
|
"overrides": {
|
|
227
227
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -302,5 +302,5 @@
|
|
|
302
302
|
"typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
|
|
303
303
|
},
|
|
304
304
|
"types": "./dist/src/index.d.ts",
|
|
305
|
-
"version": "0.19.0-beta.
|
|
305
|
+
"version": "0.19.0-beta.685"
|
|
306
306
|
}
|