@vercel/static-build 1.0.13 → 1.0.16

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 +4 -1
  2. package/package.json +6 -7
package/dist/index.js CHANGED
@@ -18974,16 +18974,19 @@ const build = async ({ files, entrypoint, workPath, config, meta = {}, }) => {
18974
18974
  if (framework) {
18975
18975
  build_utils_1.debug(`Detected ${framework.name} framework. Optimizing your deployment...`);
18976
18976
  if (process.env.VERCEL_URL) {
18977
+ const vercelSystemEnvPrefix = 'VERCEL_';
18977
18978
  const { envPrefix } = framework;
18978
18979
  if (envPrefix) {
18979
18980
  Object.keys(process.env)
18980
- .filter(key => key.startsWith('VERCEL_'))
18981
+ .filter(key => key.startsWith(vercelSystemEnvPrefix))
18981
18982
  .forEach(key => {
18982
18983
  const newKey = `${envPrefix}${key}`;
18983
18984
  if (!(newKey in process.env)) {
18984
18985
  process.env[newKey] = process.env[key];
18985
18986
  }
18986
18987
  });
18988
+ // tell turbo to exclude all vercel system env vars (envPrefix includes trailing underscore)
18989
+ process.env.TURBO_CI_VENDOR_ENV_KEY = `${envPrefix}${vercelSystemEnvPrefix}`;
18987
18990
  }
18988
18991
  }
18989
18992
  if (process.env.VERCEL_ANALYTICS_ID) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "1.0.13",
3
+ "version": "1.0.16",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -16,8 +16,7 @@
16
16
  "build": "node build",
17
17
  "test": "jest --env node --verbose --bail --runInBand",
18
18
  "test-unit": "yarn test test/build.test.ts test/prepare-cache.test.ts",
19
- "test-integration-once": "yarn test test/integration-*.test.js",
20
- "prepublishOnly": "node build"
19
+ "test-integration-once": "yarn test test/integration-*.test.js"
21
20
  },
22
21
  "jest": {
23
22
  "preset": "ts-jest/presets/default",
@@ -37,10 +36,10 @@
37
36
  "@types/ms": "0.7.31",
38
37
  "@types/node-fetch": "2.5.4",
39
38
  "@types/promise-timeout": "1.3.0",
40
- "@vercel/build-utils": "5.0.8",
41
- "@vercel/frameworks": "1.1.1",
39
+ "@vercel/build-utils": "5.2.0",
40
+ "@vercel/frameworks": "1.1.3",
42
41
  "@vercel/ncc": "0.24.0",
43
- "@vercel/routing-utils": "2.0.0",
42
+ "@vercel/routing-utils": "2.0.2",
44
43
  "fs-extra": "10.0.0",
45
44
  "get-port": "5.0.0",
46
45
  "is-port-reachable": "2.0.1",
@@ -49,5 +48,5 @@
49
48
  "rc9": "1.2.0",
50
49
  "typescript": "4.3.4"
51
50
  },
52
- "gitHead": "543ffdfe5ccfb59c9c455fc50df3bb8ed1eaf567"
51
+ "gitHead": "32afd67d29d46f67027091ab9695d8ff330355b5"
53
52
  }