@vercel/client 13.0.14 → 13.1.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.
@@ -120,6 +120,26 @@ async function buildFileTree(path, {
120
120
  return ignored;
121
121
  };
122
122
  fileList = await (0, import_readdir_recursive.default)(path, [ignores2]);
123
+ if (prebuilt) {
124
+ const refs = /* @__PURE__ */ new Set();
125
+ const vcConfigFilePaths = fileList.filter(
126
+ (file) => (0, import_path.basename)(file) === ".vc-config.json"
127
+ );
128
+ await Promise.all(
129
+ vcConfigFilePaths.map(async (p) => {
130
+ const configJson = await (0, import_fs_extra.readFile)(p, "utf8");
131
+ const config = JSON.parse(configJson);
132
+ if (!config.filePathMap)
133
+ return;
134
+ for (const v of Object.values(config.filePathMap)) {
135
+ refs.add((0, import_path.join)(path, v));
136
+ }
137
+ })
138
+ );
139
+ if (refs.size > 0) {
140
+ fileList = fileList.concat(Array.from(refs));
141
+ }
142
+ }
123
143
  debug(`Found ${fileList.length} files in the specified directory`);
124
144
  } else if (Array.isArray(path)) {
125
145
  fileList = path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "13.0.14",
3
+ "version": "13.1.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",