@stacksjs/defaults 0.70.282 → 0.70.284

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.
@@ -2,7 +2,7 @@
2
2
  "publisher": "Stacks",
3
3
  "name": "vscode-stacks",
4
4
  "displayName": "Stacks",
5
- "version": "0.70.282",
5
+ "version": "0.70.284",
6
6
  "description": "A modern Stacks development environment.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
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.282",
5
+ "version": "0.70.284",
6
6
  "description": "The complete managed Stacks application scaffold, including runtime defaults, AI guidance, editor metadata, and npm-backed project support files.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
package/project/buddy CHANGED
@@ -111,12 +111,13 @@ run_buddy() {
111
111
  CONDITIONS="--conditions development"
112
112
  fi
113
113
 
114
- # Only prepend the pantry dir to NODE_PATH when the setup completed: for a
115
- # node_modules app there is no ./pantry, and pointing NODE_PATH at a missing
116
- # (or half-installed, after a failed bootstrap) dir makes bun miss
117
- # node_modules (e.g. `Cannot find module '@stacksjs/env'` from a preload).
114
+ # Installed dependencies are authoritative; Pantry is a fallback for tools
115
+ # the app does not install. Keeping node_modules first prevents a stale local
116
+ # Pantry snapshot from changing migrations, builds, or production commands.
117
+ # Only add Pantry after setup completed so a partial bootstrap cannot affect
118
+ # module resolution.
118
119
  if [ -f "${PANTRY_SETUP_DONE}" ]; then
119
- exec env PATH="${PANTRY_LOCAL_BIN}:${USER_LOCAL_BIN}:${PATH}" NODE_PATH="${PANTRY_DIR}:${NODE_PATH:-}" "${BUN_CMD}" ${CONDITIONS} "${BUDDY_ENTRY}" "$@"
120
+ exec env PATH="${PANTRY_LOCAL_BIN}:${USER_LOCAL_BIN}:${PATH}" NODE_PATH="${ROOT_DIR}/node_modules:${PANTRY_DIR}${NODE_PATH:+:${NODE_PATH}}" "${BUN_CMD}" ${CONDITIONS} "${BUDDY_ENTRY}" "$@"
120
121
  fi
121
122
  exec env PATH="${PANTRY_LOCAL_BIN}:${USER_LOCAL_BIN}:${PATH}" "${BUN_CMD}" ${CONDITIONS} "${BUDDY_ENTRY}" "$@"
122
123
  }