@vercel/build-utils
Advanced tools
Comparing version 2.4.1 to 2.4.2-canary.0
@@ -6,2 +6,4 @@ import { Route } from '@vercel/routing-utils'; | ||
message: string; | ||
action?: string; | ||
link?: string; | ||
} | ||
@@ -8,0 +10,0 @@ interface Options { |
@@ -438,3 +438,5 @@ "use strict"; | ||
code: 'unused_function', | ||
message: `The function for ${fnKey} can't be handled by any builder`, | ||
message: `The pattern "${fnKey}" defined in \`functions\` doesn't match any Serverless Functions.`, | ||
action: 'Learn More', | ||
link: 'https://vercel.link/unmatched-function-pattern', | ||
}; | ||
@@ -445,7 +447,8 @@ } | ||
if (unusedFunctions.size) { | ||
const [unusedFunction] = Array.from(unusedFunctions); | ||
const [fnKey] = Array.from(unusedFunctions); | ||
return { | ||
code: 'unused_function', | ||
message: `The function for ${unusedFunction} can't be handled by any builder. ` + | ||
`Make sure it is inside the api/ directory.`, | ||
message: `The pattern "${fnKey}" defined in \`functions\` doesn't match any Serverless Functions inside the \`api\` directory.`, | ||
action: 'Learn More', | ||
link: 'https://vercel.link/unmatched-function-pattern', | ||
}; | ||
@@ -452,0 +455,0 @@ } |
{ | ||
"name": "@vercel/build-utils", | ||
"version": "2.4.1", | ||
"version": "2.4.2-canary.0", | ||
"license": "MIT", | ||
@@ -51,3 +51,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "e19446f89c3461c774b2d545f027766bcb372d05" | ||
"gitHead": "1a1271509609ff0e48f947d61f0a267798238cd7" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1245514
30593
1