@vercel/static-build 2.1.0 → 2.2.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27063,6 +27063,7 @@ async function injectVercelAnalyticsPlugin(dir) {
27063
27063
  // src/index.ts
27064
27064
  var import_tree_kill = __toESM(require_tree_kill());
27065
27065
  var import_fs_detectors = __toESM(require_dist4());
27066
+ var SUPPORTED_RUBY_VERSION = "3.2.0";
27066
27067
  var sleep = (n) => new Promise((resolve) => setTimeout(resolve, n));
27067
27068
  var DEV_SERVER_PORT_BIND_TIMEOUT = (0, import_ms.default)("5m");
27068
27069
  async function checkForPort(port, timeout) {
@@ -27446,7 +27447,7 @@ var build = async ({
27446
27447
  pathList.push(vendorBin);
27447
27448
  (0, import_build_utils3.debug)(`Added "${vendorBin}" to PATH env because a Gemfile was found`);
27448
27449
  const dir = import_path6.default.join(workPath, "vendor", "bundle", "ruby");
27449
- const rubyVersion = (0, import_fs4.existsSync)(dir) && (0, import_fs4.statSync)(dir).isDirectory() ? (0, import_fs4.readdirSync)(dir)[0] : "";
27450
+ const rubyVersion = SUPPORTED_RUBY_VERSION;
27450
27451
  if (rubyVersion) {
27451
27452
  gemHome = import_path6.default.join(dir, rubyVersion);
27452
27453
  (0, import_build_utils3.debug)(`Set GEM_HOME="${gemHome}" because a Gemfile was found`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",