@vercel/redwood 0.8.4 → 1.0.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 +3 -4
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -11,7 +11,6 @@ const routing_utils_1 = require("@vercel/routing-utils");
11
11
  // it refers to Vercels builder version
12
12
  exports.version = 2;
13
13
  const build = async ({ workPath, files, entrypoint, meta = {}, config = {}, }) => {
14
- var _a, _b, _c;
15
14
  await (0, build_utils_1.download)(files, workPath, meta);
16
15
  Object.keys(process.env)
17
16
  .filter(key => key.startsWith('VERCEL_'))
@@ -33,7 +32,7 @@ const build = async ({ workPath, files, entrypoint, meta = {}, config = {}, }) =
33
32
  if (cliType === 'npm') {
34
33
  if (typeof lockfileVersion === 'number' &&
35
34
  lockfileVersion >= 2 &&
36
- ((nodeVersion === null || nodeVersion === void 0 ? void 0 : nodeVersion.major) || 0) < 16) {
35
+ (nodeVersion?.major || 0) < 16) {
37
36
  // Ensure that npm 7 is at the beginning of the `$PATH`
38
37
  spawnOpts.env.PATH = `/node16/bin-npm7${path_1.delimiter}${spawnOpts.env.PATH}`;
39
38
  console.log('Detected `package-lock.json` generated by npm 7...');
@@ -108,7 +107,7 @@ const build = async ({ workPath, files, entrypoint, meta = {}, config = {}, }) =
108
107
  cwd: workPath,
109
108
  });
110
109
  }
111
- const apiDir = (_c = (_b = (_a = toml === null || toml === void 0 ? void 0 : toml.web) === null || _a === void 0 ? void 0 : _a.apiProxyPath) === null || _b === void 0 ? void 0 : _b.replace(/^\//, '')) !== null && _c !== void 0 ? _c : 'api';
110
+ const apiDir = toml?.web?.apiProxyPath?.replace(/^\//, '') ?? 'api';
112
111
  const apiDistPath = (0, path_1.join)(workPath, 'api', 'dist', 'functions');
113
112
  const webDistPath = (0, path_1.join)(workPath, 'web', 'dist');
114
113
  const lambdaOutputs = {};
@@ -188,7 +187,7 @@ const build = async ({ workPath, files, entrypoint, meta = {}, config = {}, }) =
188
187
  },
189
188
  });
190
189
  for (const warning of warnings) {
191
- if (warning === null || warning === void 0 ? void 0 : warning.stack) {
190
+ if (warning?.stack) {
192
191
  (0, build_utils_1.debug)(warning.stack.replace('Error: ', 'Warning: '));
193
192
  }
194
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/redwood",
3
- "version": "0.8.4",
3
+ "version": "1.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "homepage": "https://vercel.com/docs",
@@ -21,14 +21,14 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@vercel/nft": "0.19.1",
24
- "@vercel/routing-utils": "1.13.3",
24
+ "@vercel/routing-utils": "1.13.4",
25
25
  "semver": "6.1.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/aws-lambda": "8.10.19",
29
29
  "@types/node": "*",
30
30
  "@types/semver": "6.0.0",
31
- "@vercel/build-utils": "3.1.1"
31
+ "@vercel/build-utils": "4.0.0"
32
32
  },
33
- "gitHead": "ad436313e155b0e07cb14475e11c5c12e1b36f75"
33
+ "gitHead": "de0d2fba0b32588726a2799015eaff4e6bb65ffb"
34
34
  }