@vercel/static-build 2.0.17 → 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 +8 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -26730,6 +26730,9 @@ async function injectPlugins(detectedVersion, dir) {
26730
26730
  if (process.env.VERCEL_ANALYTICS_ID) {
26731
26731
  process.env.GATSBY_VERCEL_ANALYTICS_ID = process.env.VERCEL_ANALYTICS_ID;
26732
26732
  plugins.add("@vercel/gatsby-plugin-vercel-analytics");
26733
+ console.warn(
26734
+ "Vercel Speed Insights auto-injection is deprecated in favor of @vercel/speed-insights package. Learn more: https://vercel.link/upgrate-to-speed-insights-package"
26735
+ );
26733
26736
  }
26734
26737
  if (plugins.size === 0) {
26735
26738
  return false;
@@ -27027,6 +27030,9 @@ var import_path5 = require("path");
27027
27030
  var import_rc9 = __toESM(require_dist3());
27028
27031
  var ANALYTICS_PLUGIN_PACKAGE = "@nuxtjs/web-vitals";
27029
27032
  async function injectVercelAnalyticsPlugin(dir) {
27033
+ console.warn(
27034
+ "Vercel Speed Insights auto-injection is deprecated in favor of @vercel/speed-insights package. Learn more: https://vercel.link/upgrate-to-speed-insights-package"
27035
+ );
27030
27036
  const nuxtrcPath = (0, import_path5.join)(dir, ".nuxtrc");
27031
27037
  console.log(
27032
27038
  `Injecting Nuxt.js Speed Insights plugin "${ANALYTICS_PLUGIN_PACKAGE}" to \`${nuxtrcPath}\``
@@ -27057,6 +27063,7 @@ async function injectVercelAnalyticsPlugin(dir) {
27057
27063
  // src/index.ts
27058
27064
  var import_tree_kill = __toESM(require_tree_kill());
27059
27065
  var import_fs_detectors = __toESM(require_dist4());
27066
+ var SUPPORTED_RUBY_VERSION = "3.2.0";
27060
27067
  var sleep = (n) => new Promise((resolve) => setTimeout(resolve, n));
27061
27068
  var DEV_SERVER_PORT_BIND_TIMEOUT = (0, import_ms.default)("5m");
27062
27069
  async function checkForPort(port, timeout) {
@@ -27440,7 +27447,7 @@ var build = async ({
27440
27447
  pathList.push(vendorBin);
27441
27448
  (0, import_build_utils3.debug)(`Added "${vendorBin}" to PATH env because a Gemfile was found`);
27442
27449
  const dir = import_path6.default.join(workPath, "vendor", "bundle", "ruby");
27443
- 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;
27444
27451
  if (rubyVersion) {
27445
27452
  gemHome = import_path6.default.join(dir, rubyVersion);
27446
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.0.17",
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",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
17
- "@vercel/gatsby-plugin-vercel-builder": "2.0.15",
17
+ "@vercel/gatsby-plugin-vercel-builder": "2.0.16",
18
18
  "@vercel/static-config": "3.0.0",
19
19
  "ts-morph": "12.0.0"
20
20
  },
@@ -28,7 +28,7 @@
28
28
  "@types/node-fetch": "2.5.4",
29
29
  "@types/promise-timeout": "1.3.0",
30
30
  "@types/semver": "7.3.13",
31
- "@vercel/build-utils": "7.5.0",
31
+ "@vercel/build-utils": "7.5.1",
32
32
  "@vercel/error-utils": "2.0.2",
33
33
  "@vercel/frameworks": "2.0.6",
34
34
  "@vercel/fs-detectors": "5.1.6",