@vercel/static-build 2.5.2 → 2.5.3
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/dist/index.js +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -27176,7 +27176,6 @@ function findFile(names, oses, arches, extended) {
|
|
|
27176
27176
|
|
|
27177
27177
|
// src/index.ts
|
|
27178
27178
|
var import_events = require("events");
|
|
27179
|
-
var SUPPORTED_RUBY_VERSION = "3.2.0";
|
|
27180
27179
|
var sleep = (n) => new Promise((resolve) => setTimeout(resolve, n));
|
|
27181
27180
|
var DEV_SERVER_PORT_BIND_TIMEOUT = (0, import_ms.default)("5m");
|
|
27182
27181
|
async function checkForPort(port, timeout) {
|
|
@@ -27583,9 +27582,13 @@ var build = async ({
|
|
|
27583
27582
|
pathList.push(vendorBin);
|
|
27584
27583
|
(0, import_build_utils4.debug)(`Added "${vendorBin}" to PATH env because a Gemfile was found`);
|
|
27585
27584
|
const dir = import_path6.default.join(workPath, "vendor", "bundle", "ruby");
|
|
27586
|
-
const rubyVersion =
|
|
27585
|
+
const rubyVersion = (0, import_child_process.spawnSync)(
|
|
27586
|
+
"ruby",
|
|
27587
|
+
["-e", 'print "#{ RUBY_VERSION }"'],
|
|
27588
|
+
{ encoding: "utf8" }
|
|
27589
|
+
);
|
|
27587
27590
|
if (rubyVersion) {
|
|
27588
|
-
gemHome = import_path6.default.join(dir, rubyVersion);
|
|
27591
|
+
gemHome = import_path6.default.join(dir, rubyVersion.stdout.trim());
|
|
27589
27592
|
(0, import_build_utils4.debug)(`Set GEM_HOME="${gemHome}" because a Gemfile was found`);
|
|
27590
27593
|
}
|
|
27591
27594
|
}
|