Skip to content

Commit bbc39d2

Browse files
renovate[bot]mrstorkkodiakhq[bot]
authored
fix(deps): update dependency readdirp to v4 (#6335)
* fix(deps): update dependency readdirp to v4 * chore: update readdirp.promise -> readdirpPromise --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mateusz Bocian <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent d83709c commit bbc39d2

File tree

6 files changed

+38
-10
lines changed

6 files changed

+38
-10
lines changed

package-lock.json

Lines changed: 30 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"pretty-ms": "^8.0.0",
112112
"ps-list": "^8.0.0",
113113
"read-package-up": "^11.0.0",
114-
"readdirp": "^3.4.0",
114+
"readdirp": "^4.0.0",
115115
"resolve": "^2.0.0-next.5",
116116
"rfdc": "^1.3.0",
117117
"safe-json-stringify": "^1.2.0",

packages/build/src/install/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { dirname } from 'path'
22

3-
import readdirp from 'readdirp'
3+
import { readdirpPromise } from 'readdirp'
44

55
import { logInstallFunctionDependencies } from '../log/messages/install.js'
66

@@ -20,7 +20,7 @@ export const installFunctionDependencies = async function (functionsSrc, isLocal
2020
}
2121

2222
const getPackagePaths = function (functionsSrc) {
23-
return readdirp.promise(functionsSrc, { depth: 1, fileFilter: 'package.json' })
23+
return readdirpPromise(functionsSrc, { depth: 1, fileFilter: 'package.json' })
2424
}
2525

2626
const getPackageRoot = function ({ fullPath }) {

packages/build/src/plugins_core/functions/error.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import readdirp from 'readdirp'
1+
import { readdirpPromise } from 'readdirp'
22

33
import { addErrorInfo } from '../../error/info.js'
44

@@ -123,7 +123,7 @@ const lacksNodeModules = async function (functionsSrc) {
123123
// Functions can be either files or directories, so we need to check on two
124124
// depth levels
125125
const hasFunctionRootFile = async function (filename, functionsSrc) {
126-
const files = await readdirp.promise(functionsSrc, { depth: 1, fileFilter: filename })
126+
const files = await readdirpPromise(functionsSrc, { depth: 1, fileFilter: filename })
127127
return files.length !== 0
128128
}
129129

packages/cache-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"locate-path": "^7.0.0",
5858
"move-file": "^3.0.0",
5959
"path-exists": "^5.0.0",
60-
"readdirp": "^3.4.0"
60+
"readdirp": "^4.0.0"
6161
},
6262
"devDependencies": {
6363
"@types/node": "^14.18.53",

packages/cache-utils/src/list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'path'
22

3-
import readdirp from 'readdirp'
3+
import { readdirpPromise } from 'readdirp'
44

55
import { getCacheDir } from './dir.js'
66
import { isManifest } from './manifest.js'
@@ -36,7 +36,7 @@ const listBase = async function ({
3636
cacheDir: string
3737
depth?: number
3838
}) {
39-
const files = await readdirp.promise(`${cacheDir}/${name}`, { fileFilter, depth, type: 'files_directories' })
39+
const files = await readdirpPromise(`${cacheDir}/${name}`, { fileFilter, depth, type: 'files_directories' })
4040
const filesA = files.map(({ path }) => join(base, path))
4141
return filesA
4242
}

0 commit comments

Comments
 (0)