@stacksjs/defaults 0.70.103 → 0.70.104
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
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.104",
|
|
6
6
|
"description": "Default Stacks scaffold resources (views, layouts, components, preloader) — shipped so apps consuming the framework from node_modules get the same fallback resources a vendored checkout provides. Source of truth: storage/framework/defaults.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"license": "MIT",
|
|
@@ -72,8 +72,15 @@ if (!skipPreloader) {
|
|
|
72
72
|
process.env.NODE_ENV = 'production'
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
// Load .env files with encryption support using
|
|
76
|
-
|
|
75
|
+
// Load .env files with encryption support using the vendored source first.
|
|
76
|
+
// The preloader runs before Bun has necessarily linked workspace packages
|
|
77
|
+
// (fresh installs and minimal Linux/Docker checkouts are the important
|
|
78
|
+
// cases), so resolving @stacksjs/env here creates a bootstrap cycle. The
|
|
79
|
+
// source plugin is self-contained; retain the package fallback for contexts
|
|
80
|
+
// where defaults is consumed outside the standard framework layout.
|
|
81
|
+
const envPackage = '@stacksjs/' + 'env'
|
|
82
|
+
const { autoLoadEnv } = await import('../../../core/env/src/plugin.ts')
|
|
83
|
+
.catch(() => import(envPackage))
|
|
77
84
|
|
|
78
85
|
// Auto-load .env files based on environment
|
|
79
86
|
// Set quiet: true to prevent duplicate logging across multiple processes
|