@absolutejs/absolute 0.19.0-beta.764 → 0.19.0-beta.765
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/build.js +84 -16
- package/dist/build.js.map +4 -4
- package/dist/cli/index.js +1 -0
- package/dist/index.js +87 -18
- package/dist/index.js.map +5 -5
- package/dist/src/build/generateManifest.d.ts +1 -1
- package/dist/src/core/build.d.ts +7 -2
- package/dist/src/utils/loadConfig.d.ts +1 -0
- package/dist/types/build.d.ts +15 -0
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BuildArtifact } from 'bun';
|
|
1
|
+
import type { BuildArtifact } from 'bun';
|
|
2
2
|
export declare const generateManifest: (outputs: BuildArtifact[], buildPath: string) => Record<string, string>;
|
package/dist/src/core/build.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { build as bunBuild } from 'bun';
|
|
1
2
|
import type { ConventionsMap } from '../../types/conventions';
|
|
2
|
-
import type { BuildConfig } from '../../types/build';
|
|
3
|
-
|
|
3
|
+
import type { BuildConfig, BunBuildConfigOverride, BunBuildPassKey } from '../../types/build';
|
|
4
|
+
type BunBuildOptions = Parameters<typeof bunBuild>[0];
|
|
5
|
+
export declare const resolveBunBuildOverride: (config: BuildConfig["bunBuild"], pass: BunBuildPassKey) => BunBuildConfigOverride;
|
|
6
|
+
export declare const mergeBunBuildConfig: (base: BunBuildOptions, override: BunBuildConfigOverride) => BunBuildOptions;
|
|
7
|
+
export declare const build: ({ buildDirectory, assetsDirectory, publicDirectory, islands, reactDirectory, htmlDirectory, htmxDirectory, angularDirectory, svelteDirectory, vueDirectory, stylesConfig, stylePreprocessors, postcss, tailwind, bunBuild: bunBuildConfig, options, incrementalFiles, mode }: BuildConfig) => Promise<{
|
|
4
8
|
conventions?: undefined;
|
|
5
9
|
manifest?: undefined;
|
|
6
10
|
} | {
|
|
7
11
|
conventions: ConventionsMap;
|
|
8
12
|
manifest: Record<string, string>;
|
|
9
13
|
}>;
|
|
14
|
+
export {};
|
|
@@ -20,6 +20,7 @@ export declare const loadConfig: (configPath?: string) => Promise<{
|
|
|
20
20
|
stylePreprocessors?: import("..").StylePreprocessorConfig;
|
|
21
21
|
postcss?: import("..").PostCSSConfig;
|
|
22
22
|
tailwind?: import("..").TailwindConfig;
|
|
23
|
+
bunBuild?: import("..").BunBuildConfigOverride | import("..").BunBuildPassConfig;
|
|
23
24
|
options?: import("..").BuildOptions;
|
|
24
25
|
incrementalFiles?: string[];
|
|
25
26
|
mode?: "production" | "development";
|
package/dist/types/build.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { build } from '../src/core/build';
|
|
2
2
|
import { devBuild } from '../src/core/devBuild';
|
|
3
|
+
import type { BuildConfig as BunBuildConfig } from 'bun';
|
|
3
4
|
import type { ImageConfig } from './image';
|
|
4
5
|
import type { SitemapConfig } from './sitemap';
|
|
6
|
+
export type BunBuildPassKey = 'server' | 'reactClient' | 'nonReactClient' | 'islandClient' | 'globalCss' | 'vueCss';
|
|
7
|
+
export type ReservedBunBuildConfigKey = 'entrypoints' | 'outdir' | 'outfile' | 'root' | 'target' | 'format' | 'throw' | 'compile';
|
|
8
|
+
type DistributivePartialOmit<T, K extends PropertyKey> = T extends unknown ? Partial<Omit<T, Extract<keyof T, K>>> : never;
|
|
9
|
+
export type BunBuildConfigOverride = DistributivePartialOmit<BunBuildConfig, ReservedBunBuildConfigKey>;
|
|
10
|
+
export type BunBuildPassConfig = {
|
|
11
|
+
default?: BunBuildConfigOverride;
|
|
12
|
+
} & Partial<Record<BunBuildPassKey, BunBuildConfigOverride>>;
|
|
5
13
|
export type BuildOptions = {
|
|
6
14
|
/** When true, build() throws on error instead of exit(1) - used by HMR rebuilds */
|
|
7
15
|
throwOnError?: boolean;
|
|
@@ -135,6 +143,12 @@ export type BaseBuildConfig = {
|
|
|
135
143
|
stylePreprocessors?: StylePreprocessorConfig;
|
|
136
144
|
postcss?: PostCSSConfig;
|
|
137
145
|
tailwind?: TailwindConfig;
|
|
146
|
+
/**
|
|
147
|
+
* Bun build options applied to Absolute's app output build passes.
|
|
148
|
+
* Framework-owned fields such as entrypoints, outdir, root, target,
|
|
149
|
+
* format, throw, and compile are intentionally not user-configurable.
|
|
150
|
+
*/
|
|
151
|
+
bunBuild?: BunBuildConfigOverride | BunBuildPassConfig;
|
|
138
152
|
options?: BuildOptions;
|
|
139
153
|
incrementalFiles?: string[];
|
|
140
154
|
mode?: 'production' | 'development';
|
|
@@ -188,3 +202,4 @@ export type Result = BuildResult | DevBuildResult;
|
|
|
188
202
|
export type Prettify<T> = {
|
|
189
203
|
[K in keyof T]: T[K];
|
|
190
204
|
} & {};
|
|
205
|
+
export {};
|
package/package.json
CHANGED
|
@@ -187,12 +187,12 @@
|
|
|
187
187
|
"main": "./dist/index.js",
|
|
188
188
|
"name": "@absolutejs/absolute",
|
|
189
189
|
"optionalDependencies": {
|
|
190
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
191
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
192
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
193
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
194
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
195
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
190
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.765",
|
|
191
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.765",
|
|
192
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.765",
|
|
193
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.765",
|
|
194
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.765",
|
|
195
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.765"
|
|
196
196
|
},
|
|
197
197
|
"overrides": {
|
|
198
198
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -349,5 +349,5 @@
|
|
|
349
349
|
]
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
|
-
"version": "0.19.0-beta.
|
|
352
|
+
"version": "0.19.0-beta.765"
|
|
353
353
|
}
|