@vercel/backends 0.0.51 → 0.0.53

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.mjs CHANGED
@@ -880,6 +880,7 @@ const nft = async (args) => {
880
880
  await nftSpan.trace(runNft);
881
881
  };
882
882
  const isTypeScriptFile = (fsPath) => {
883
+ if (fsPath.endsWith(".d.ts") || fsPath.endsWith(".d.mts") || fsPath.endsWith(".d.cts")) return false;
883
884
  return fsPath.endsWith(".ts") || fsPath.endsWith(".tsx") || fsPath.endsWith(".mts") || fsPath.endsWith(".cts");
884
885
  };
885
886
 
@@ -974,7 +975,7 @@ const rolldown = async (args) => {
974
975
  external: true
975
976
  };
976
977
  if (resolved?.id && isLocalImport(resolved.id)) localBuildFiles.add(resolved.id);
977
- else if (!resolved) localBuildFiles.add(join$1(args.workPath, id));
978
+ else if (!resolved && !(isBareImport(id) && importer)) localBuildFiles.add(join$1(args.workPath, id));
978
979
  if (importer?.startsWith(CJS_SHIM_PREFIX) && isBareImport(id)) return {
979
980
  id,
980
981
  external: true
@@ -134,6 +134,7 @@ const nft = async (args) => {
134
134
  await nftSpan.trace(runNft);
135
135
  };
136
136
  const isTypeScriptFile = (fsPath) => {
137
+ if (fsPath.endsWith(".d.ts") || fsPath.endsWith(".d.mts") || fsPath.endsWith(".d.cts")) return false;
137
138
  return fsPath.endsWith(".ts") || fsPath.endsWith(".tsx") || fsPath.endsWith(".mts") || fsPath.endsWith(".cts");
138
139
  };
139
140
 
@@ -228,7 +229,7 @@ const rolldown = async (args) => {
228
229
  external: true
229
230
  };
230
231
  if (resolved?.id && isLocalImport(resolved.id)) localBuildFiles.add(resolved.id);
231
- else if (!resolved) localBuildFiles.add(join(args.workPath, id));
232
+ else if (!resolved && !(isBareImport(id) && importer)) localBuildFiles.add(join(args.workPath, id));
232
233
  if (importer?.startsWith(CJS_SHIM_PREFIX) && isBareImport(id)) return {
233
234
  id,
234
235
  external: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/backends",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.mjs",
6
6
  "homepage": "https://vercel.com/docs",
@@ -34,7 +34,7 @@
34
34
  "srvx": "0.8.9",
35
35
  "tsx": "4.21.0",
36
36
  "zod": "3.22.4",
37
- "@vercel/build-utils": "13.10.0"
37
+ "@vercel/build-utils": "13.12.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "typescript": "^4.0.0 || ^5.0.0"