@absolutejs/absolute 0.19.0-beta.810 → 0.19.0-beta.812
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 +55 -6
- package/dist/build.js.map +5 -5
- package/dist/cli/index.js +168 -57
- package/dist/index.js +55 -6
- package/dist/index.js.map +6 -6
- package/dist/src/cli/scripts/workspace.d.ts +5 -0
- package/dist/src/utils/defineConfig.d.ts +24 -1
- package/package.json +7 -7
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { WorkspaceConfig } from '../../../types/build';
|
|
1
2
|
type WorkspaceDevOptions = {
|
|
2
3
|
configPath?: string;
|
|
3
4
|
};
|
|
5
|
+
export declare const findSharedWorkspaceBuildDirectories: (services: WorkspaceConfig) => {
|
|
6
|
+
buildDirectory: string;
|
|
7
|
+
names: string[];
|
|
8
|
+
}[];
|
|
4
9
|
export declare const workspace: (subcommand: string | undefined, options: WorkspaceDevOptions) => Promise<void>;
|
|
5
10
|
export {};
|
|
@@ -11,6 +11,29 @@ type TypedCommandServiceConfig<TConfig, TSelf extends string> = Omit<CommandServ
|
|
|
11
11
|
type TypedWorkspaceConfig<TConfig extends Record<string, unknown>> = {
|
|
12
12
|
[K in keyof TConfig]: K extends string ? TypedAbsoluteServiceConfig<TConfig, K> | TypedCommandServiceConfig<TConfig, K> : never;
|
|
13
13
|
};
|
|
14
|
-
type
|
|
14
|
+
type ServiceBuildDirectory<TConfig, TKey extends keyof TConfig> = TConfig[TKey] extends {
|
|
15
|
+
command: readonly unknown[];
|
|
16
|
+
} ? never : TConfig[TKey] extends {
|
|
17
|
+
kind: 'command';
|
|
18
|
+
} ? never : TConfig[TKey] extends {
|
|
19
|
+
buildDirectory: infer TBuildDirectory;
|
|
20
|
+
} ? TBuildDirectory extends string ? TBuildDirectory : never : never;
|
|
21
|
+
type ServicesWithBuildDirectory<TConfig extends Record<string, unknown>, TBuildDirectory extends string> = {
|
|
22
|
+
[K in keyof TConfig]: ServiceBuildDirectory<TConfig, K> extends TBuildDirectory ? K : never;
|
|
23
|
+
}[keyof TConfig];
|
|
24
|
+
type IsUnion<TValue, TCompare = TValue> = TValue extends unknown ? [TCompare] extends [TValue] ? false : true : never;
|
|
25
|
+
type DuplicateBuildDirectoryValues<TConfig extends Record<string, unknown>> = {
|
|
26
|
+
[K in keyof TConfig]: ServiceBuildDirectory<TConfig, K> extends infer TBuildDirectory ? TBuildDirectory extends string ? IsUnion<ServicesWithBuildDirectory<TConfig, TBuildDirectory>> extends true ? TBuildDirectory : never : never : never;
|
|
27
|
+
}[keyof TConfig];
|
|
28
|
+
type ValidateUniqueBuildDirectories<TConfig extends Record<string, unknown>> = [
|
|
29
|
+
DuplicateBuildDirectoryValues<TConfig>
|
|
30
|
+
] extends [never] ? unknown : {
|
|
31
|
+
/**
|
|
32
|
+
* Workspace services cannot use duplicate literal buildDirectory values.
|
|
33
|
+
* Runtime workspace validation also checks resolved absolute paths.
|
|
34
|
+
*/
|
|
35
|
+
__absolute_duplicateBuildDirectory__: DuplicateBuildDirectoryValues<TConfig>;
|
|
36
|
+
};
|
|
37
|
+
type ValidateConfig<TConfig extends Record<string, unknown>> = HasReservedConfigKeys<TConfig> extends true ? AbsoluteServiceConfig : TypedWorkspaceConfig<TConfig> & ValidateUniqueBuildDirectories<TConfig>;
|
|
15
38
|
export declare const defineConfig: <const TConfig extends Record<string, unknown>>(config: TConfig & ValidateConfig<TConfig>) => TConfig & ValidateConfig<TConfig>;
|
|
16
39
|
export {};
|
package/package.json
CHANGED
|
@@ -185,12 +185,12 @@
|
|
|
185
185
|
"main": "./dist/index.js",
|
|
186
186
|
"name": "@absolutejs/absolute",
|
|
187
187
|
"optionalDependencies": {
|
|
188
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
189
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
190
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
191
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
192
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
193
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
188
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.811",
|
|
189
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.811",
|
|
190
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.811",
|
|
191
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.811",
|
|
192
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.811",
|
|
193
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.811"
|
|
194
194
|
},
|
|
195
195
|
"overrides": {
|
|
196
196
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -347,5 +347,5 @@
|
|
|
347
347
|
]
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
|
-
"version": "0.19.0-beta.
|
|
350
|
+
"version": "0.19.0-beta.812"
|
|
351
351
|
}
|