@vercel/build-utils 5.7.4 → 5.8.2
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/fs/download.d.ts +1 -0
- package/dist/fs/download.js +12 -2
- package/dist/fs/glob.js +32 -14
- package/dist/fs/run-user-scripts.js +3 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +23666 -23582
- package/dist/lambda.js +3 -0
- package/package.json +8 -4
package/dist/lambda.js
CHANGED
@@ -107,6 +107,9 @@ async function createZip(files) {
|
|
107
107
|
if (typeof symlinkTarget === 'string') {
|
108
108
|
zipFile.addBuffer(Buffer.from(symlinkTarget, 'utf8'), name, opts);
|
109
109
|
}
|
110
|
+
else if (file.mode && download_1.isDirectory(file.mode)) {
|
111
|
+
zipFile.addEmptyDirectory(name, opts);
|
112
|
+
}
|
110
113
|
else {
|
111
114
|
const stream = file.toStream();
|
112
115
|
stream.on('error', reject);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vercel/build-utils",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.8.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"main": "./dist/index.js",
|
6
6
|
"types": "./dist/index.d.js",
|
@@ -13,8 +13,8 @@
|
|
13
13
|
"scripts": {
|
14
14
|
"build": "node build",
|
15
15
|
"test": "jest --env node --verbose --runInBand --bail",
|
16
|
-
"test-unit": "
|
17
|
-
"test-integration-once": "
|
16
|
+
"test-unit": "pnpm test test/unit.*test.*",
|
17
|
+
"test-integration-once": "pnpm test test/integration.test.ts"
|
18
18
|
},
|
19
19
|
"devDependencies": {
|
20
20
|
"@iarna/toml": "2.2.3",
|
@@ -25,8 +25,10 @@
|
|
25
25
|
"@types/glob": "7.2.0",
|
26
26
|
"@types/jest": "27.4.1",
|
27
27
|
"@types/js-yaml": "3.12.1",
|
28
|
+
"@types/minimatch": "^5.1.2",
|
28
29
|
"@types/ms": "0.7.31",
|
29
30
|
"@types/multistream": "2.1.1",
|
31
|
+
"@types/node": "14.18.33",
|
30
32
|
"@types/node-fetch": "^2.1.6",
|
31
33
|
"@types/semver": "6.0.0",
|
32
34
|
"@types/yazl": "2.4.2",
|
@@ -36,8 +38,10 @@
|
|
36
38
|
"async-sema": "2.1.4",
|
37
39
|
"cross-spawn": "6.0.5",
|
38
40
|
"end-of-stream": "1.4.1",
|
41
|
+
"execa": "3.2.0",
|
39
42
|
"fs-extra": "10.0.0",
|
40
43
|
"glob": "8.0.3",
|
44
|
+
"ignore": "4.0.6",
|
41
45
|
"into-stream": "5.0.0",
|
42
46
|
"js-yaml": "3.13.1",
|
43
47
|
"minimatch": "3.0.4",
|
@@ -47,5 +51,5 @@
|
|
47
51
|
"typescript": "4.3.4",
|
48
52
|
"yazl": "2.5.1"
|
49
53
|
},
|
50
|
-
"gitHead": "
|
54
|
+
"gitHead": "e54da8a2e5504987a956e2baaad6d817028b597f"
|
51
55
|
}
|