@downdraft/engine 0.4.0-alpha.0 → 0.4.1
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.
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
export const isBun = typeof globalThis.Bun !== "undefined";
|
|
12
12
|
/**
|
|
13
13
|
* True inside a `bun build --compile` binary. In compiled executables
|
|
14
|
-
* `Bun.main` is `/$bunfs/root/<entry>`
|
|
14
|
+
* `Bun.main` is `/$bunfs/root/<entry>` (`B:\~BUN\root\<entry>` on Windows)
|
|
15
|
+
* instead of a real filesystem path —
|
|
15
16
|
* this is a global and stays correct even in bundles where a packager has
|
|
16
17
|
* rewritten a module's own `import.meta.url` to the staged asset tree.
|
|
17
18
|
*/
|
|
18
|
-
export const isCompiledBinary = isBun && /^\/\$bunfs
|
|
19
|
+
export const isCompiledBinary = isBun && /^\/\$bunfs\/|^B:[/\\]~BUN[/\\]/i.test(globalThis.Bun?.main ?? "");
|
|
19
20
|
/**
|
|
20
21
|
* Dev mode. Resolved from (in priority order):
|
|
21
22
|
* 1. DOWNDRAFT_DEV=1 env var
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@downdraft/engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/knackstedt/downdraft.git",
|
|
@@ -864,7 +864,7 @@
|
|
|
864
864
|
"zustand": "^5.0.2"
|
|
865
865
|
},
|
|
866
866
|
"peerDependencies": {
|
|
867
|
-
"@downdraft/platform-native": "^0.4.
|
|
867
|
+
"@downdraft/platform-native": "^0.4.1"
|
|
868
868
|
},
|
|
869
869
|
"peerDependenciesMeta": {
|
|
870
870
|
"@downdraft/platform-native": {
|