@crustjs/crust-linux-x64-musl 0.5.5 → 0.6.0
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/bin/crust-bun-linux-x64-musl +2 -2
- package/bin/dist/index.d.ts +19 -12
- package/bin/dist/index.js +357 -1598
- package/bin/schema/package.json +5 -6
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/bin/crust-bun-linux-x64-musl
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 105412008 bytes
|
|
4
|
+
sha256: 33d9d1f4f08c357f785cf77cf38bb4f79a18ed7fa7c803d785fcd14c131fb615
|
package/bin/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { BuildReport, BuildReport as BuildReport$1 } from "@crustjs/core";
|
|
2
|
-
|
|
2
|
+
declare const BUN_TARGET_NAMES: readonly ["bun-linux-x64", "bun-linux-arm64", "bun-linux-x64-musl", "bun-linux-arm64-musl", "bun-darwin-x64", "bun-darwin-arm64", "bun-windows-x64", "bun-windows-arm64"];
|
|
3
|
+
type BunTarget = (typeof BUN_TARGET_NAMES)[number];
|
|
4
|
+
declare const NODE_TARGET_NAMES: readonly ["linux-x64", "linux-arm64", "darwin-x64", "darwin-arm64", "win-x64", "win-arm64"];
|
|
5
|
+
type NodeTarget = (typeof NODE_TARGET_NAMES)[number];
|
|
6
|
+
/** `--target` value that stands for this machine's canonical target. */
|
|
7
|
+
declare const HOST_TARGET = "host";
|
|
3
8
|
/**
|
|
4
9
|
* What one build distributes: a runtime `package` (a root-only JavaScript
|
|
5
10
|
* bundle that needs the runtime installed) or standalone `binary` executables
|
|
@@ -31,8 +36,6 @@ type BuildArtifact = {
|
|
|
31
36
|
path: string;
|
|
32
37
|
command: string;
|
|
33
38
|
};
|
|
34
|
-
//#endregion
|
|
35
|
-
//#region src/build.d.ts
|
|
36
39
|
/** Options of the programmatic {@link build}; `crust build` maps its flags onto them. */
|
|
37
40
|
type BuildOptions = {
|
|
38
41
|
/** Project root whose package.json `bin` and `crust` are read. Default: `process.cwd()`. */
|
|
@@ -47,13 +50,20 @@ type BuildOptions = {
|
|
|
47
50
|
/**
|
|
48
51
|
* Canonical compiler targets, or `"host"` for this machine. Overrides
|
|
49
52
|
* package.json `crust.targets`; omit both to stage every target of the
|
|
50
|
-
* binary compiler. Rejected for runtime packages.
|
|
53
|
+
* binary compiler. Rejected for runtime packages. Known names are completion
|
|
54
|
+
* hints only; any string is checked at build time.
|
|
51
55
|
*/
|
|
52
|
-
targets?: readonly string[];
|
|
53
|
-
/** Env files inlining `PUBLIC_*` build-time constants, resolved against `cwd`.
|
|
56
|
+
targets?: readonly (BunTarget | NodeTarget | typeof HOST_TARGET | (string & {}))[];
|
|
57
|
+
/** Env files inlining `PUBLIC_*` build-time constants, resolved against `cwd`. */
|
|
54
58
|
envFiles?: readonly string[];
|
|
55
|
-
/** Minify the output. Default: true
|
|
59
|
+
/** Minify the output. Default: true. */
|
|
56
60
|
minify?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Precompile Bun standalone executables to bytecode for faster startup. Default:
|
|
63
|
+
* true for bun binaries; an explicit `true` is rejected for other runtimes and for
|
|
64
|
+
* runtime packages, whose consumer runtime may not read Bun bytecode.
|
|
65
|
+
*/
|
|
66
|
+
bytecode?: boolean;
|
|
57
67
|
/** Materialize Command Snapshots and run Extension build hooks before compiling. Default: true. */
|
|
58
68
|
validate?: boolean;
|
|
59
69
|
/** Receives each progress line `crust build` would print; silent when omitted. Warnings arrive as `"stderr"`. */
|
|
@@ -76,10 +86,8 @@ type BuildResult = {
|
|
|
76
86
|
* come from `bin`; the runtime, artifact, Bun plugins, extra directories, and
|
|
77
87
|
* external dependencies from package.json `crust`. Bundling and Command
|
|
78
88
|
* Snapshots run in bun subprocesses (bun on PATH, or the running Bun
|
|
79
|
-
* executable), so this works under Node as well when Bun is installed;
|
|
80
|
-
* binaries
|
|
81
|
-
* deno on PATH, and Node binaries a node on PATH that Crust's tsdown can build
|
|
82
|
-
* executables with.
|
|
89
|
+
* executable), so this works under Node as well when Bun is installed; Node
|
|
90
|
+
* binaries need a node on PATH that Crust's tsdown can build executables with.
|
|
83
91
|
*
|
|
84
92
|
* Throws on any failure. Planning and compiler-selection failures (bad
|
|
85
93
|
* options or package.json, a missing or hung compiler, an engines mismatch) leave the
|
|
@@ -89,5 +97,4 @@ type BuildResult = {
|
|
|
89
97
|
* process may leave `.crust.lock`; remove it only when no build is running.
|
|
90
98
|
*/
|
|
91
99
|
export declare function build(options?: BuildOptions): Promise<BuildResult>;
|
|
92
|
-
//#endregion
|
|
93
100
|
export type { BuildArtifact, BuildOptions, BuildReport, BuildResult };
|