@absolutejs/absolute 0.20.0-beta.146 → 0.20.0-beta.148
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/CHANGELOG.md +40 -0
- package/changelog.json +70 -4
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +197 -178
- package/dist/build.js.map +7 -6
- package/dist/cli/{buildDepVendor-g49s8rr1.js → buildDepVendor-29d8v9cx.js} +2 -1
- package/dist/cli/{dev-4qz8gk8x.js → dev-b9d4vnk0.js} +30 -23
- package/dist/cli/index.js +1 -1
- package/dist/index.js +447 -428
- package/dist/index.js.map +7 -6
- package/dist/src/cli/devSpawn.d.ts +8 -0
- package/dist/src/dev/runtimePaths.d.ts +2 -0
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ import"./index-kye08pjx.js";
|
|
|
11
11
|
|
|
12
12
|
// src/build/buildDepVendor.ts
|
|
13
13
|
import { isBuiltin } from "module";
|
|
14
|
+
import { join, relative } from "path";
|
|
14
15
|
var {build: bunBuild, Glob } = globalThis.Bun;
|
|
15
16
|
|
|
16
17
|
// src/build/vendorEntrySource.ts
|
|
@@ -83,7 +84,7 @@ var scanDirFiles = async (dir) => {
|
|
|
83
84
|
const glob = new Glob("**/*.{ts,tsx,js,jsx}");
|
|
84
85
|
try {
|
|
85
86
|
const all = await Array.fromAsync(glob.scan({ absolute: true, cwd: dir }));
|
|
86
|
-
return all.filter((file) => !isSkippedFile(file));
|
|
87
|
+
return all.filter((file) => !isSkippedFile(`/${relative(dir, file).replaceAll("\\", "/")}`));
|
|
87
88
|
} catch {
|
|
88
89
|
return empty;
|
|
89
90
|
}
|
|
@@ -775,7 +775,7 @@ var serializeDependencies = (graph) => {
|
|
|
775
775
|
return dependencies;
|
|
776
776
|
};
|
|
777
777
|
var computePayload = async (config, vendorSourceDirs) => {
|
|
778
|
-
const { computeDepVendorPaths } = await import("./buildDepVendor-
|
|
778
|
+
const { computeDepVendorPaths } = await import("./buildDepVendor-29d8v9cx.js");
|
|
779
779
|
const vendors = computeDepVendorPaths(vendorSourceDirs);
|
|
780
780
|
const graph = {
|
|
781
781
|
dependencies: new Map,
|
|
@@ -1256,6 +1256,15 @@ var createInteractiveHandler = (actions) => {
|
|
|
1256
1256
|
return { clearPrompt, dispose, showPrompt };
|
|
1257
1257
|
};
|
|
1258
1258
|
|
|
1259
|
+
// src/cli/devSpawn.ts
|
|
1260
|
+
var devChildSpawnOptions = (cwd, env) => ({
|
|
1261
|
+
cwd,
|
|
1262
|
+
detached: true,
|
|
1263
|
+
env,
|
|
1264
|
+
stdio: ["ignore", "pipe", "pipe", "pipe"],
|
|
1265
|
+
windowsHide: process.platform === "win32"
|
|
1266
|
+
});
|
|
1267
|
+
|
|
1259
1268
|
// src/utils/resolveDevPort.ts
|
|
1260
1269
|
import { createServer } from "net";
|
|
1261
1270
|
var isPortFree = (port, host = "localhost") => new Promise((resolve) => {
|
|
@@ -2539,34 +2548,32 @@ var dev = async (serverEntry, configPath, options = {}) => {
|
|
|
2539
2548
|
markBoot("dev child spawn requested");
|
|
2540
2549
|
const prescanForSpawn = prescan;
|
|
2541
2550
|
prescan = null;
|
|
2551
|
+
const childEnv = {
|
|
2552
|
+
...process.env,
|
|
2553
|
+
...readDotenvFiles(),
|
|
2554
|
+
ABSOLUTE_HOST: resolvedDev.host,
|
|
2555
|
+
ABSOLUTE_INSTANCE_MANAGED: "1",
|
|
2556
|
+
ABSOLUTE_PORT: String(port),
|
|
2557
|
+
ABSOLUTE_SERVER_ENTRY: resolvePath(serverEntry),
|
|
2558
|
+
...parentListener ? { [PARENT_LISTENER_ENV]: "1" } : {},
|
|
2559
|
+
...bootTimelineChildEnv(),
|
|
2560
|
+
...prescanForSpawn ? { ABSOLUTE_DEV_PRESCAN: prescanForSpawn.path } : {},
|
|
2561
|
+
...options.eager ? { ABSOLUTE_DEV_EAGER: "1" } : {},
|
|
2562
|
+
...process.stdout.isTTY === true ? { ABSOLUTE_DEV_TTY: "1" } : {},
|
|
2563
|
+
...mobileConfig ? { ABSOLUTE_MOBILE_PREVIEW: "1" } : {},
|
|
2564
|
+
FORCE_COLOR: "1",
|
|
2565
|
+
NODE_ENV: "development",
|
|
2566
|
+
PORT: String(port),
|
|
2567
|
+
...configPath ? { ABSOLUTE_CONFIG: configPath } : {},
|
|
2568
|
+
...httpsEnabled ? { ABSOLUTE_HTTPS: "true" } : {}
|
|
2569
|
+
};
|
|
2542
2570
|
const proc = nodeSpawn(bunExecutable, [
|
|
2543
2571
|
"--no-clear-screen",
|
|
2544
2572
|
...heapSnapshotEnabled ? ["--preload", heapPreloadPath] : [],
|
|
2545
2573
|
...importCostEnabled() ? ["--preload", importCostPreload] : [],
|
|
2546
2574
|
serverBootstrap
|
|
2547
2575
|
], {
|
|
2548
|
-
|
|
2549
|
-
detached: true,
|
|
2550
|
-
env: {
|
|
2551
|
-
...process.env,
|
|
2552
|
-
...readDotenvFiles(),
|
|
2553
|
-
ABSOLUTE_HOST: resolvedDev.host,
|
|
2554
|
-
ABSOLUTE_INSTANCE_MANAGED: "1",
|
|
2555
|
-
ABSOLUTE_PORT: String(port),
|
|
2556
|
-
ABSOLUTE_SERVER_ENTRY: resolvePath(serverEntry),
|
|
2557
|
-
...parentListener ? { [PARENT_LISTENER_ENV]: "1" } : {},
|
|
2558
|
-
...bootTimelineChildEnv(),
|
|
2559
|
-
...prescanForSpawn ? { ABSOLUTE_DEV_PRESCAN: prescanForSpawn.path } : {},
|
|
2560
|
-
...options.eager ? { ABSOLUTE_DEV_EAGER: "1" } : {},
|
|
2561
|
-
...process.stdout.isTTY === true ? { ABSOLUTE_DEV_TTY: "1" } : {},
|
|
2562
|
-
...mobileConfig ? { ABSOLUTE_MOBILE_PREVIEW: "1" } : {},
|
|
2563
|
-
FORCE_COLOR: "1",
|
|
2564
|
-
NODE_ENV: "development",
|
|
2565
|
-
PORT: String(port),
|
|
2566
|
-
...configPath ? { ABSOLUTE_CONFIG: configPath } : {},
|
|
2567
|
-
...httpsEnabled ? { ABSOLUTE_HTTPS: "true" } : {}
|
|
2568
|
-
},
|
|
2569
|
-
stdio: ["ignore", "pipe", "pipe", "pipe"]
|
|
2576
|
+
...devChildSpawnOptions(process.cwd(), childEnv)
|
|
2570
2577
|
});
|
|
2571
2578
|
prescanForSpawn?.start();
|
|
2572
2579
|
const [, , , handoffPipe] = proc.stdio;
|
package/dist/cli/index.js
CHANGED
|
@@ -54,7 +54,7 @@ if (command === "dev") {
|
|
|
54
54
|
}
|
|
55
55
|
const positionalArgs = stripNamedArgs("--config", "--android-device", "--ios-device").filter((arg) => arg !== "--no-mobile" && arg !== "--eager");
|
|
56
56
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
57
|
-
const { dev } = await import("./dev-
|
|
57
|
+
const { dev } = await import("./dev-b9d4vnk0.js");
|
|
58
58
|
await dev(serverEntry, configPath, {
|
|
59
59
|
androidDevice,
|
|
60
60
|
eager: args.includes("--eager"),
|