@vercel/static-build 1.0.5-canary.0 → 1.0.7

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 CHANGED
@@ -10091,6 +10091,41 @@ exports.frameworks = [
10091
10091
  },
10092
10092
  ],
10093
10093
  },
10094
+ {
10095
+ name: 'Hydrogen',
10096
+ slug: 'hydrogen',
10097
+ demo: 'https://hydrogen-template.vercel.app',
10098
+ logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/hydrogen.svg',
10099
+ tagline: 'React framework for headless commerce',
10100
+ description: 'React framework for headless commerce',
10101
+ website: 'https://hydrogen.shopify.dev',
10102
+ useRuntime: { src: 'package.json', use: '@vercel/hydrogen' },
10103
+ detectors: {
10104
+ every: [
10105
+ {
10106
+ path: 'hydrogen.config.js',
10107
+ },
10108
+ ],
10109
+ },
10110
+ settings: {
10111
+ installCommand: {
10112
+ placeholder: '`yarn install`, `pnpm install`, or `npm install`',
10113
+ },
10114
+ buildCommand: {
10115
+ value: 'shopify hydrogen build',
10116
+ placeholder: '`npm run build` or `shopify hydrogen build`',
10117
+ },
10118
+ devCommand: {
10119
+ value: 'shopify hydrogen dev',
10120
+ placeholder: 'shopify hydrogen dev',
10121
+ },
10122
+ outputDirectory: {
10123
+ value: 'dist',
10124
+ },
10125
+ },
10126
+ dependency: '@shopify/hydrogen',
10127
+ getOutputDirName: async () => 'dist',
10128
+ },
10094
10129
  {
10095
10130
  name: 'Other',
10096
10131
  slug: null,
@@ -17491,7 +17526,7 @@ async function readConfig(path) {
17491
17526
  }
17492
17527
  exports.readConfig = readConfig;
17493
17528
  function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
17494
- if (!meta.cliVersion) {
17529
+ if (meta.isDev) {
17495
17530
  let buildCommandName;
17496
17531
  if (buildCommand)
17497
17532
  buildCommandName = `"${buildCommand}"`;
@@ -17499,10 +17534,7 @@ function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
17499
17534
  buildCommandName = framework.name;
17500
17535
  else
17501
17536
  buildCommandName = 'the "build" script';
17502
- if (meta.isDev) {
17503
- throw new Error(`Detected Build Output v3 from ${buildCommandName}, but it is not supported for \`vercel dev\`. Please set the Development Command in your Project Settings.`);
17504
- }
17505
- throw new Error(`Detected Build Output v3 from ${buildCommandName}, but this Deployment is not using \`vercel build\`.\nPlease set the \`ENABLE_VC_BUILD=1\` environment variable.`);
17537
+ throw new Error(`Detected Build Output v3 from ${buildCommandName}, but it is not supported for \`vercel dev\`. Please set the Development Command in your Project Settings.`);
17506
17538
  }
17507
17539
  return {
17508
17540
  buildOutputVersion: 3,
@@ -37,7 +37,7 @@ async function readConfig(path) {
37
37
  }
38
38
  exports.readConfig = readConfig;
39
39
  function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
40
- if (!meta.cliVersion) {
40
+ if (meta.isDev) {
41
41
  let buildCommandName;
42
42
  if (buildCommand)
43
43
  buildCommandName = `"${buildCommand}"`;
@@ -45,10 +45,7 @@ function createBuildOutput(meta, buildCommand, buildOutputPath, framework) {
45
45
  buildCommandName = framework.name;
46
46
  else
47
47
  buildCommandName = 'the "build" script';
48
- if (meta.isDev) {
49
- throw new Error(`Detected Build Output v3 from ${buildCommandName}, but it is not supported for \`vercel dev\`. Please set the Development Command in your Project Settings.`);
50
- }
51
- throw new Error(`Detected Build Output v3 from ${buildCommandName}, but this Deployment is not using \`vercel build\`.\nPlease set the \`ENABLE_VC_BUILD=1\` environment variable.`);
48
+ throw new Error(`Detected Build Output v3 from ${buildCommandName}, but it is not supported for \`vercel dev\`. Please set the Development Command in your Project Settings.`);
52
49
  }
53
50
  return {
54
51
  buildOutputVersion: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "1.0.5-canary.0",
3
+ "version": "1.0.7",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -37,8 +37,8 @@
37
37
  "@types/ms": "0.7.31",
38
38
  "@types/node-fetch": "2.5.4",
39
39
  "@types/promise-timeout": "1.3.0",
40
- "@vercel/build-utils": "5.0.1-canary.0",
41
- "@vercel/frameworks": "1.0.2",
40
+ "@vercel/build-utils": "5.0.2",
41
+ "@vercel/frameworks": "1.1.0",
42
42
  "@vercel/ncc": "0.24.0",
43
43
  "@vercel/routing-utils": "1.13.5",
44
44
  "fs-extra": "10.0.0",
@@ -49,5 +49,5 @@
49
49
  "rc9": "1.2.0",
50
50
  "typescript": "4.3.4"
51
51
  },
52
- "gitHead": "3c48b40b43e3357c4c06bfe05e1192b1434b691f"
52
+ "gitHead": "bfdbe586757a8870eae36cbf39e17889dd8f747a"
53
53
  }