@vercel/frameworks
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -834,3 +834,5 @@ "use strict"; | ||
if (content.length === 1 && content[0].isDirectory()) { | ||
return (0, import_path.join)(base, content[0].name); | ||
const potentialOutDir = (0, import_path.join)(base, content[0].name); | ||
const potentialOutDirWithBrowser = (0, import_path.join)(potentialOutDir, "browser"); | ||
return (0, import_fs.existsSync)(potentialOutDirWithBrowser) ? potentialOutDirWithBrowser : potentialOutDir; | ||
} | ||
@@ -837,0 +839,0 @@ } catch (error) { |
@@ -834,3 +834,5 @@ "use strict"; | ||
if (content.length === 1 && content[0].isDirectory()) { | ||
return (0, import_path.join)(base, content[0].name); | ||
const potentialOutDir = (0, import_path.join)(base, content[0].name); | ||
const potentialOutDirWithBrowser = (0, import_path.join)(potentialOutDir, "browser"); | ||
return (0, import_fs.existsSync)(potentialOutDirWithBrowser) ? potentialOutDirWithBrowser : potentialOutDir; | ||
} | ||
@@ -837,0 +839,0 @@ } catch (error) { |
{ | ||
"name": "@vercel/frameworks", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"main": "./dist/frameworks.js", | ||
@@ -18,3 +18,3 @@ "types": "./dist/frameworks.d.ts", | ||
"js-yaml": "3.13.1", | ||
"@vercel/error-utils": "2.0.1" | ||
"@vercel/error-utils": "2.0.2" | ||
}, | ||
@@ -26,3 +26,3 @@ "devDependencies": { | ||
"@types/node-fetch": "2.5.8", | ||
"@vercel/routing-utils": "3.0.0", | ||
"@vercel/routing-utils": "3.1.0", | ||
"ajv": "6.12.2", | ||
@@ -35,4 +35,5 @@ "jest-junit": "16.0.0", | ||
"test": "jest --reporters=default --reporters=jest-junit --env node --verbose --runInBand --bail", | ||
"test-unit": "pnpm test" | ||
"test-unit": "pnpm test", | ||
"type-check": "tsc --noEmit" | ||
} | ||
} |
197681
5900
+ Added@vercel/error-utils@2.0.2(transitive)
- Removed@vercel/error-utils@2.0.1(transitive)
Updated@vercel/error-utils@2.0.2