@absolutejs/absolute 0.19.0-beta.672 → 0.19.0-beta.673
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 +84 -28
- package/dist/index.js +65 -12
- package/dist/index.js.map +4 -4
- package/dist/src/utils/defineConfig.d.ts +2 -2
- package/dist/src/utils/loadConfig.d.ts +5 -1
- package/dist/types/build.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const defineConfig: (config:
|
|
1
|
+
import type { ConfigInput } from '../../types/build';
|
|
2
|
+
export declare const defineConfig: <TConfig extends ConfigInput>(config: TConfig) => TConfig;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import type { BuildConfig } from '../../types/build';
|
|
1
|
+
import type { BuildConfig, ConfigInput, WorkspaceConfig } from '../../types/build';
|
|
2
|
+
declare const isWorkspaceConfig: (config: ConfigInput) => config is WorkspaceConfig;
|
|
3
|
+
declare const getWorkspaceServices: (config: ConfigInput) => WorkspaceConfig;
|
|
4
|
+
export declare const loadRawConfig: (configPath?: string) => Promise<ConfigInput>;
|
|
2
5
|
export declare const loadConfig: (configPath?: string) => Promise<BuildConfig>;
|
|
6
|
+
export { getWorkspaceServices, isWorkspaceConfig };
|
package/dist/types/build.d.ts
CHANGED
|
@@ -90,9 +90,9 @@ export type CommandServiceConfig = {
|
|
|
90
90
|
config?: never;
|
|
91
91
|
};
|
|
92
92
|
export type ServiceConfig = AbsoluteServiceConfig | CommandServiceConfig;
|
|
93
|
-
export type
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
export type WorkspaceConfig = Record<string, ServiceConfig>;
|
|
94
|
+
export type BuildConfig = AbsoluteServiceConfig;
|
|
95
|
+
export type ConfigInput = BuildConfig | WorkspaceConfig;
|
|
96
96
|
export type BuildResult = ReturnType<typeof build>;
|
|
97
97
|
export type DevBuildResult = ReturnType<typeof devBuild>;
|
|
98
98
|
export type Result = BuildResult | DevBuildResult;
|
package/package.json
CHANGED