@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,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "26.1.1",
3
+ "version": "26.1.2",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./src/core/main.js",
@@ -1,6 +1,5 @@
1
- import { stat } from 'fs'
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 pStat(functionsSrc)
46
+ const stats = await fs.stat(functionsSrc)
50
47
 
51
48
  if (stats.isDirectory()) {
52
49
  return true