@vercel/static-build 2.9.29 → 2.9.31

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 +12 -3
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -23455,7 +23455,7 @@ var require_resolve = __commonJS({
23455
23455
  workspace = workspace === "." ? normalizedRoot : import_path7.posix.join(normalizedRoot, workspace);
23456
23456
  }
23457
23457
  }
23458
- const topics = type === "worker" ? (0, import_build_utils5.getServiceQueueTopics)({ type, topics: config.topics }) : trigger === "queue" ? config.topics : void 0;
23458
+ const topics = type === "worker" ? (0, import_build_utils5.getServiceQueueTopics)({ type, topics: config.topics }) : trigger === "queue" ? config.topics : trigger === "workflow" ? ["__wkf_*"] : void 0;
23459
23459
  let builderUse;
23460
23460
  let builderSrc;
23461
23461
  const frameworkDefinition = config.framework ? frameworksBySlug.get(config.framework) : void 0;
@@ -27159,7 +27159,7 @@ var require_detect_render = __commonJS({
27159
27159
  static: "web"
27160
27160
  };
27161
27161
  async function detectRenderServices(options) {
27162
- const { fs: fs5 } = options;
27162
+ const { fs: fs5, detectEntrypoint } = options;
27163
27163
  const raw = await readRenderYaml(fs5);
27164
27164
  if (raw.warning) {
27165
27165
  return { services: null, errors: [], warnings: [raw.warning] };
@@ -27283,7 +27283,16 @@ var require_detect_render = __commonJS({
27283
27283
  serviceConfig.type = vercelType;
27284
27284
  serviceConfig.framework = framework.slug ?? void 0;
27285
27285
  if (rootDir !== ".") {
27286
- serviceConfig.entrypoint = rootDir;
27286
+ serviceConfig.root = rootDir;
27287
+ if (detectEntrypoint && !(0, import_utils.isFrontendFramework)(serviceConfig.framework)) {
27288
+ const detected = await detectEntrypoint({
27289
+ workPath: rootDir,
27290
+ framework: serviceConfig.framework
27291
+ });
27292
+ if (detected) {
27293
+ serviceConfig.entrypoint = detected.entrypoint;
27294
+ }
27295
+ }
27287
27296
  }
27288
27297
  const buildCommand = (0, import_utils.combineBuildCommand)(
27289
27298
  rs.buildCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.9.29",
3
+ "version": "2.9.31",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -15,8 +15,8 @@
15
15
  "dependencies": {
16
16
  "ts-morph": "12.0.0",
17
17
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
18
- "@vercel/gatsby-plugin-vercel-builder": "2.2.6",
19
- "@vercel/static-config": "3.3.0"
18
+ "@vercel/static-config": "3.3.0",
19
+ "@vercel/gatsby-plugin-vercel-builder": "2.2.8"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/aws-lambda": "8.10.64",
@@ -37,11 +37,11 @@
37
37
  "semver": "7.5.2",
38
38
  "tree-kill": "1.2.2",
39
39
  "vitest": "2.0.3",
40
- "@vercel/build-utils": "13.26.0",
40
+ "@vercel/build-utils": "13.26.2",
41
41
  "@vercel/error-utils": "2.1.0",
42
42
  "@vercel/frameworks": "3.26.1",
43
- "@vercel/routing-utils": "6.2.0",
44
- "@vercel/fs-detectors": "6.6.0"
43
+ "@vercel/fs-detectors": "6.7.1",
44
+ "@vercel/routing-utils": "6.2.0"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "node ../../utils/build-builder.mjs",