@netlify/build 26.1.1 → 26.1.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/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { promises as fs } from 'fs'
|
|
2
2
|
import { relative } from 'path'
|
|
3
|
-
import { promisify } from 'util'
|
|
4
3
|
|
|
5
4
|
import { listFunctions } from '@netlify/zip-it-and-ship-it'
|
|
6
5
|
|
|
@@ -8,8 +7,6 @@ import { addErrorInfo } from '../../error/info.js'
|
|
|
8
7
|
|
|
9
8
|
import { getZisiFeatureFlags } from './feature_flags.js'
|
|
10
9
|
|
|
11
|
-
const pStat = promisify(stat)
|
|
12
|
-
|
|
13
10
|
// Returns the `mainFile` of each function found in `functionsSrc`, relative to
|
|
14
11
|
// `functionsSrc`.
|
|
15
12
|
const getRelativeFunctionMainFiles = async function ({ featureFlags, functionsSrc }) {
|
|
@@ -46,7 +43,7 @@ export const validateFunctionsSrc = async function ({ functionsSrc, relativeFunc
|
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
try {
|
|
49
|
-
const stats = await
|
|
46
|
+
const stats = await fs.stat(functionsSrc)
|
|
50
47
|
|
|
51
48
|
if (stats.isDirectory()) {
|
|
52
49
|
return true
|