@mirinjs/cli 0.1.0-alpha.17 → 0.1.0-alpha.18
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/package.json +8 -8
- package/src/build.ts +5 -1
- package/src/dev.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mirinjs/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.18",
|
|
4
4
|
"description": "CLI for mirin apps: dev, build, init.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"bun": ">=1.2.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"create-mirinjs": "0.1.0-alpha.
|
|
31
|
-
"mirinjs": "0.1.0-alpha.
|
|
30
|
+
"create-mirinjs": "0.1.0-alpha.18",
|
|
31
|
+
"mirinjs": "0.1.0-alpha.18"
|
|
32
32
|
},
|
|
33
33
|
"optionalDependencies": {
|
|
34
|
-
"@mirinjs/darwin-arm64": "0.1.0-alpha.
|
|
35
|
-
"@mirinjs/win32-x64": "0.1.0-alpha.
|
|
36
|
-
"@mirinjs/win32-arm64": "0.1.0-alpha.
|
|
37
|
-
"@mirinjs/linux-arm64": "0.1.0-alpha.
|
|
38
|
-
"@mirinjs/linux-x64": "0.1.0-alpha.
|
|
34
|
+
"@mirinjs/darwin-arm64": "0.1.0-alpha.18",
|
|
35
|
+
"@mirinjs/win32-x64": "0.1.0-alpha.18",
|
|
36
|
+
"@mirinjs/win32-arm64": "0.1.0-alpha.18",
|
|
37
|
+
"@mirinjs/linux-arm64": "0.1.0-alpha.18",
|
|
38
|
+
"@mirinjs/linux-x64": "0.1.0-alpha.18"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
package/src/build.ts
CHANGED
|
@@ -211,7 +211,11 @@ export async function build(
|
|
|
211
211
|
const workerJs = join(work, "worker.release.js");
|
|
212
212
|
const sidecars = normalizeSidecars(projectDir, config.sidecars);
|
|
213
213
|
const hostBuild = (async (): Promise<void> => {
|
|
214
|
-
|
|
214
|
+
// Bun's Windows arm64 build currently has no bun:ffi/TinyCC runtime. The
|
|
215
|
+
// win32-arm64 Mirin package therefore carries an x64 compatibility payload,
|
|
216
|
+
// which Windows 11 ARM executes through its built-in x64 emulation layer.
|
|
217
|
+
const target = IS_WINDOWS && process.arch === "arm64" ? ["--target=bun-windows-x64"] : [];
|
|
218
|
+
await $`bun build --compile --minify ${target} ${artifacts.hostEntry} --outfile ${hostExe}`.cwd(
|
|
215
219
|
projectDir,
|
|
216
220
|
);
|
|
217
221
|
if (IS_WINDOWS) {
|
package/src/dev.ts
CHANGED
|
@@ -59,7 +59,11 @@ export async function dev(projectDir = process.cwd()): Promise<number> {
|
|
|
59
59
|
// `bun build --compile` emits an `.exe` on Windows; name it so explicitly.
|
|
60
60
|
const hostExe = join(work, IS_WINDOWS ? "host.exe" : "host");
|
|
61
61
|
const workerJs = join(work, "worker.js");
|
|
62
|
-
|
|
62
|
+
const hostTarget =
|
|
63
|
+
process.platform === "win32" && process.arch === "arm64" ? ["--target=bun-windows-x64"] : [];
|
|
64
|
+
await $`bun build --compile ${hostTarget} ${artifacts.hostEntry} --outfile ${hostExe}`.cwd(
|
|
65
|
+
projectDir,
|
|
66
|
+
);
|
|
63
67
|
await $`bun build ${mainEntry} --target=bun --outfile ${workerJs}`.cwd(projectDir);
|
|
64
68
|
|
|
65
69
|
// Extra assets (dev): compile workers into .mirin/workers and symlink sidecar
|