@netlify/build 33.1.3 → 33.1.4
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/lib/install/functions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { dirname } from 'path';
|
|
2
|
-
import
|
|
2
|
+
import { readdirpPromise } from 'readdirp';
|
|
3
3
|
import { logInstallFunctionDependencies } from '../log/messages/install.js';
|
|
4
4
|
import { installDependencies } from './main.js';
|
|
5
5
|
// Install dependencies of Netlify Functions
|
|
@@ -13,7 +13,7 @@ export const installFunctionDependencies = async function (functionsSrc, isLocal
|
|
|
13
13
|
await Promise.all(packageRoots.map((packageRoot) => installDependencies({ packageRoot, isLocal })));
|
|
14
14
|
};
|
|
15
15
|
const getPackagePaths = function (functionsSrc) {
|
|
16
|
-
return
|
|
16
|
+
return readdirpPromise(functionsSrc, { depth: 1, fileFilter: 'package.json' });
|
|
17
17
|
};
|
|
18
18
|
const getPackageRoot = function ({ fullPath }) {
|
|
19
19
|
return dirname(fullPath);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { readdirpPromise } from 'readdirp';
|
|
2
2
|
import { addErrorInfo } from '../../error/info.js';
|
|
3
3
|
const MODULE_NOT_FOUND_CODE = 'MODULE_NOT_FOUND';
|
|
4
4
|
const MODULE_NOT_FOUND_ESBUILD_REGEXP = /^Could not resolve ['"]([^'"]+)/;
|
|
@@ -89,7 +89,7 @@ const lacksNodeModules = async function (functionsSrc) {
|
|
|
89
89
|
// Functions can be either files or directories, so we need to check on two
|
|
90
90
|
// depth levels
|
|
91
91
|
const hasFunctionRootFile = async function (filename, functionsSrc) {
|
|
92
|
-
const files = await
|
|
92
|
+
const files = await readdirpPromise(functionsSrc, { depth: 1, fileFilter: filename });
|
|
93
93
|
return files.length !== 0;
|
|
94
94
|
};
|
|
95
95
|
const MODULE_NOT_FOUND_MESSAGE = `A Netlify Function failed to require one of its dependencies.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/build",
|
|
3
|
-
"version": "33.1.
|
|
3
|
+
"version": "33.1.4",
|
|
4
4
|
"description": "Netlify build module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@bugsnag/js": "^7.0.0",
|
|
70
70
|
"@netlify/blobs": "^8.2.0",
|
|
71
|
-
"@netlify/cache-utils": "^6.0.
|
|
72
|
-
"@netlify/config": "^23.0.
|
|
71
|
+
"@netlify/cache-utils": "^6.0.2",
|
|
72
|
+
"@netlify/config": "^23.0.4",
|
|
73
73
|
"@netlify/edge-bundler": "14.0.4",
|
|
74
74
|
"@netlify/framework-info": "^10.0.4",
|
|
75
|
-
"@netlify/functions-utils": "^6.0.
|
|
75
|
+
"@netlify/functions-utils": "^6.0.6",
|
|
76
76
|
"@netlify/git-utils": "^6.0.1",
|
|
77
77
|
"@netlify/opentelemetry-utils": "^2.0.0",
|
|
78
78
|
"@netlify/plugins-list": "^6.80.0",
|
|
79
79
|
"@netlify/run-utils": "^6.0.1",
|
|
80
|
-
"@netlify/zip-it-and-ship-it": "12.0
|
|
80
|
+
"@netlify/zip-it-and-ship-it": "12.1.0",
|
|
81
81
|
"@sindresorhus/slugify": "^2.0.0",
|
|
82
82
|
"ansi-escapes": "^7.0.0",
|
|
83
83
|
"chalk": "^5.0.0",
|
|
@@ -106,12 +106,12 @@
|
|
|
106
106
|
"p-map": "^7.0.0",
|
|
107
107
|
"p-reduce": "^3.0.0",
|
|
108
108
|
"path-exists": "^5.0.0",
|
|
109
|
-
"path-type": "^
|
|
109
|
+
"path-type": "^6.0.0",
|
|
110
110
|
"pkg-dir": "^8.0.0",
|
|
111
|
-
"pretty-ms": "^
|
|
111
|
+
"pretty-ms": "^9.0.0",
|
|
112
112
|
"ps-list": "^8.0.0",
|
|
113
113
|
"read-package-up": "^11.0.0",
|
|
114
|
-
"readdirp": "^
|
|
114
|
+
"readdirp": "^4.0.0",
|
|
115
115
|
"resolve": "^2.0.0-next.5",
|
|
116
116
|
"rfdc": "^1.3.0",
|
|
117
117
|
"safe-json-stringify": "^1.2.0",
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"engines": {
|
|
160
160
|
"node": ">=18.14.0"
|
|
161
161
|
},
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "8eb0a2d3736eb5b24304fac146ae57ca6ef48a79"
|
|
163
163
|
}
|