Files
pack/examples/node-version-precedence/package.json
T
Michael BiancoandGitHub 1f4a9ad382 fix(node): prioritize RAILPACK_NODE_VERSION over engines.node (#601)
* feat(node): prioritize RAILPACK_NODE_VERSION over engines.node

- Add regression test case to verify environment variable precedence for Node version resolution.
- Add reproduction example for the reported issue where engine constraints override deployment variables.

Generated-by: aiautocommit

* feat(test): rename and update node version precedence example

* Rename `node-subfolder-node-version` to `node-version-precedence` to better reflect its purpose.
* Update `test.json` to allow stderr, accommodating potential output variations during version resolution.
* Replace the README to clarify the expected precedence behavior for environment variables versus engine settings.

Generated-by: aiautocommit

* refactor: improve package version resolution comments

- Clarify that package versions defined in `railpack.json` serve as defaults.
- Clarify that these values are overridden by more specific sources like `package.json` or environment variables.
- Update documentation to reflect that version sources are labeled as "custom config" to accommodate CLI flags and external config files.

Generated-by: aiautocommit

* feat(deps): add bun to idiomatic version resolution

Generated-by: aiautocommit

* refactor(mise): simplify version resolution logic

- Improve readability by removing nested conditional blocks.
- Clarify that UseMiseVersions now supports idiomatic version files and explicitly overwrites existing configuration.
- Enhance variable naming for better intent representation.

Generated-by: aiautocommit

* refactor(node): adjust node version resolution precedence

- Update node version resolution to ensure ENV-level configuration takes precedence over package.json engines.
- Refactor node detection logic for Bun projects to conditionally omit Node.js installation when no dependencies are present.
- Streamline Node.js package installation to reduce redundant configuration checks.

Generated-by: aiautocommit

* feat: add example test for Bun-only apps excluding Node binary

Generated-by: aiautocommit

* docs: simplify README for node version precedence example

Generated-by: aiautocommit

* test: add snapshots for node version precedence and bun examples

Generated-by: aiautocommit

* docs: update project documentation and test guidelines

Generated-by: aiautocommit

* refactor(test): merge node-bun-no-node into node-bun-no-deps

- Remove the redundant node-bun-no-node example.
- Consolidate the "no node binary" verification logic into the node-bun-no-deps example.
- Improve documentation in the readme for the consolidated example.

Generated-by: aiautocommit

* test: remove outdated snapshot for node-bun build plan

Generated-by: aiautocommit
2026-06-18 14:20:22 +02:00

11 lines
168 B
JSON

{
"name": "node-version-precedence",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "node index.js"
},
"engines": {
"node": ">=18"
}
}