@vercel/backends 0.1.2 → 0.2.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.
- package/dist/index.mjs +4 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -352,7 +352,7 @@ function buildDirectMaps(pkgJson) {
|
|
|
352
352
|
directRequested
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
async function generateProjectManifest({ workPath, nodeVersion, cliType, lockfilePath, lockfileVersion }) {
|
|
355
|
+
async function generateProjectManifest({ workPath, nodeVersion, cliType, lockfilePath, lockfileVersion, framework }) {
|
|
356
356
|
try {
|
|
357
357
|
const pkgJson = await readPackageJson(workPath);
|
|
358
358
|
if (!pkgJson) return;
|
|
@@ -401,6 +401,7 @@ async function generateProjectManifest({ workPath, nodeVersion, cliType, lockfil
|
|
|
401
401
|
await writeProjectManifest({
|
|
402
402
|
version: MANIFEST_VERSION,
|
|
403
403
|
runtime: "node",
|
|
404
|
+
...framework ? { framework } : {},
|
|
404
405
|
runtimeVersion,
|
|
405
406
|
dependencies: [...directDeps.sort((a, b) => a.name.localeCompare(b.name)), ...transitiveDeps.sort((a, b) => a.name.localeCompare(b.name))]
|
|
406
407
|
}, workPath, "node");
|
|
@@ -1962,7 +1963,8 @@ const build = async (args) => {
|
|
|
1962
1963
|
nodeVersion,
|
|
1963
1964
|
cliType: downloadResult.cliType,
|
|
1964
1965
|
lockfilePath: downloadResult.lockfilePath,
|
|
1965
|
-
lockfileVersion: downloadResult.lockfileVersion
|
|
1966
|
+
lockfileVersion: downloadResult.lockfileVersion,
|
|
1967
|
+
framework: rolldownResult.framework.slug || void 0
|
|
1966
1968
|
});
|
|
1967
1969
|
} catch (err) {
|
|
1968
1970
|
debug(`Failed to write node manifest: ${err instanceof Error ? err.message : String(err)}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/backends",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.mjs",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"srvx": "0.8.9",
|
|
37
37
|
"tsx": "4.21.0",
|
|
38
38
|
"zod": "3.22.4",
|
|
39
|
-
"@vercel/build-utils": "13.
|
|
39
|
+
"@vercel/build-utils": "13.20.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"typescript": "^4.0.0 || ^5.0.0"
|