@vercel/static-build 1.3.35 → 1.3.37
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.js +7 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -237487,15 +237487,20 @@ class LocalFileSystemDetector extends filesystem_1.DetectorFilesystem {
|
|
|
237487
237487
|
};
|
|
237488
237488
|
return dir.map(dirent => ({
|
|
237489
237489
|
name: dirent.name,
|
|
237490
|
-
path: path_1.default.join(
|
|
237490
|
+
path: path_1.default.join(this.getRelativeFilePath(name), dirent.name),
|
|
237491
237491
|
type: getType(dirent),
|
|
237492
237492
|
}));
|
|
237493
237493
|
}
|
|
237494
237494
|
_chdir(name) {
|
|
237495
237495
|
return new LocalFileSystemDetector(this.getFilePath(name));
|
|
237496
237496
|
}
|
|
237497
|
+
getRelativeFilePath(name) {
|
|
237498
|
+
return name.startsWith(this.rootPath)
|
|
237499
|
+
? path_1.default.relative(this.rootPath, name)
|
|
237500
|
+
: name;
|
|
237501
|
+
}
|
|
237497
237502
|
getFilePath(name) {
|
|
237498
|
-
return path_1.default.join(this.rootPath, name);
|
|
237503
|
+
return path_1.default.join(this.rootPath, this.getRelativeFilePath(name));
|
|
237499
237504
|
}
|
|
237500
237505
|
}
|
|
237501
237506
|
exports.LocalFileSystemDetector = LocalFileSystemDetector;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.37",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.10",
|
|
17
|
-
"@vercel/gatsby-plugin-vercel-builder": "1.3.
|
|
17
|
+
"@vercel/gatsby-plugin-vercel-builder": "1.3.10"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@vercel/build-utils": "6.7.5",
|
|
30
30
|
"@vercel/error-utils": "1.0.10",
|
|
31
31
|
"@vercel/frameworks": "1.4.2",
|
|
32
|
-
"@vercel/fs-detectors": "
|
|
32
|
+
"@vercel/fs-detectors": "4.0.0",
|
|
33
33
|
"@vercel/ncc": "0.24.0",
|
|
34
34
|
"@vercel/routing-utils": "2.2.1",
|
|
35
35
|
"@vercel/static-config": "2.0.17",
|