@absolutejs/absolute 0.19.0-beta.810 → 0.19.0-beta.811
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/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +7 -3
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +25 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +4 -4
- package/dist/src/cli/scripts/workspace.d.ts +5 -0
- package/dist/src/utils/defineConfig.d.ts +24 -1
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -4512,6 +4512,30 @@ var resolveService = (name, service, workspaceEnv, options) => {
|
|
|
4512
4512
|
visibility: getVisibility(service)
|
|
4513
4513
|
};
|
|
4514
4514
|
};
|
|
4515
|
+
var resolveServiceBuildDirectory = (service) => {
|
|
4516
|
+
if (!isAbsoluteService(service))
|
|
4517
|
+
return null;
|
|
4518
|
+
const cwd = resolve7(service.cwd ?? ".");
|
|
4519
|
+
return resolve7(cwd, service.buildDirectory ?? "build");
|
|
4520
|
+
};
|
|
4521
|
+
var findSharedWorkspaceBuildDirectories = (services) => {
|
|
4522
|
+
const byBuildDirectory = new Map;
|
|
4523
|
+
for (const [name, service] of Object.entries(services)) {
|
|
4524
|
+
const buildDirectory = resolveServiceBuildDirectory(service);
|
|
4525
|
+
if (!buildDirectory)
|
|
4526
|
+
continue;
|
|
4527
|
+
const names = byBuildDirectory.get(buildDirectory) ?? [];
|
|
4528
|
+
names.push(name);
|
|
4529
|
+
byBuildDirectory.set(buildDirectory, names);
|
|
4530
|
+
}
|
|
4531
|
+
return Array.from(byBuildDirectory).filter(([, names]) => names.length > 1).map(([buildDirectory, names]) => ({ buildDirectory, names }));
|
|
4532
|
+
};
|
|
4533
|
+
var warnForSharedBuildDirectories = (services, addLog) => {
|
|
4534
|
+
const sharedBuildDirectories = findSharedWorkspaceBuildDirectories(services);
|
|
4535
|
+
for (const { buildDirectory, names } of sharedBuildDirectories) {
|
|
4536
|
+
addLog("workspace", `Services ${names.map((name) => `"${name}"`).join(" and ")} resolve to the same buildDirectory: ${buildDirectory}. Builds will be serialized and the last completed build will own that directory.`, "warn");
|
|
4537
|
+
}
|
|
4538
|
+
};
|
|
4515
4539
|
var workspace = async (subcommand, options) => {
|
|
4516
4540
|
if (subcommand !== "dev") {
|
|
4517
4541
|
throw new Error(subcommand ? `Unknown workspace command: ${subcommand}` : "No workspace subcommand specified. Use `absolute workspace dev`.");
|
|
@@ -4553,6 +4577,7 @@ var workspace = async (subcommand, options) => {
|
|
|
4553
4577
|
});
|
|
4554
4578
|
const workspaceLogs = createWorkspaceLogSink(tui.addLog);
|
|
4555
4579
|
const addLog = workspaceLogs.appendLog;
|
|
4580
|
+
warnForSharedBuildDirectories(services, addLog);
|
|
4556
4581
|
const killProcess = (service) => {
|
|
4557
4582
|
try {
|
|
4558
4583
|
service.process.kill();
|
package/dist/index.js
CHANGED
|
@@ -12513,14 +12513,14 @@ import { mkdirSync as mkdirSync7 } from "fs";
|
|
|
12513
12513
|
import { join as join19 } from "path";
|
|
12514
12514
|
import { rm as rm6 } from "fs/promises";
|
|
12515
12515
|
var {build: bunBuild3, Glob: Glob6 } = globalThis.Bun;
|
|
12516
|
-
var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => jitMode ? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, "@angular/compiler"] : REQUIRED_ANGULAR_SPECIFIERS_BASE, SERVER_ONLY_ANGULAR_SPECIFIERS, SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
|
|
12516
|
+
var REQUIRED_ANGULAR_SPECIFIERS_BASE, requiredAngularSpecifiers = (jitMode) => jitMode ? [...REQUIRED_ANGULAR_SPECIFIERS_BASE, "@angular/compiler"] : REQUIRED_ANGULAR_SPECIFIERS_BASE, SERVER_ONLY_ANGULAR_SPECIFIERS, BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES, isBuildOnlyAngularSpecifier = (spec) => BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES.some((prefix) => spec === prefix || spec.startsWith(`${prefix}/`)), SCAN_SKIP_DIRS, isResolvable2 = (specifier) => {
|
|
12517
12517
|
try {
|
|
12518
12518
|
Bun.resolveSync(specifier, process.cwd());
|
|
12519
12519
|
return true;
|
|
12520
12520
|
} catch {
|
|
12521
12521
|
return false;
|
|
12522
12522
|
}
|
|
12523
|
-
}, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAngularBrowserSpecifier = (spec) => spec.startsWith("@angular/") && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec), scanSourceImports = async (directories) => {
|
|
12523
|
+
}, isBareSpecifier = (spec) => !spec.startsWith(".") && !spec.startsWith("/") && !spec.startsWith("@src/"), isAngularBrowserSpecifier = (spec) => spec.startsWith("@angular/") && !SERVER_ONLY_ANGULAR_SPECIFIERS.has(spec) && !isBuildOnlyAngularSpecifier(spec), scanSourceImports = async (directories) => {
|
|
12524
12524
|
const angular = new Set;
|
|
12525
12525
|
const transitiveRoots = new Set;
|
|
12526
12526
|
const transpiler4 = new Bun.Transpiler({ loader: "tsx" });
|
|
@@ -12707,6 +12707,10 @@ var init_buildAngularVendor = __esm(() => {
|
|
|
12707
12707
|
"@angular/platform-server",
|
|
12708
12708
|
"@angular/ssr"
|
|
12709
12709
|
]);
|
|
12710
|
+
BUILD_ONLY_ANGULAR_SPECIFIER_PREFIXES = [
|
|
12711
|
+
"@angular/compiler-cli",
|
|
12712
|
+
"@angular/localize/tools"
|
|
12713
|
+
];
|
|
12710
12714
|
SCAN_SKIP_DIRS = new Set([
|
|
12711
12715
|
"node_modules",
|
|
12712
12716
|
"build",
|
|
@@ -26740,5 +26744,5 @@ export {
|
|
|
26740
26744
|
ANGULAR_INIT_TIMEOUT_MS
|
|
26741
26745
|
};
|
|
26742
26746
|
|
|
26743
|
-
//# debugId=
|
|
26747
|
+
//# debugId=270B1E92C68497DC64756E2164756E21
|
|
26744
26748
|
//# sourceMappingURL=index.js.map
|