Skip to content

Commit 16f548a

Browse files
fix(deps): replace dependency read-pkg-up with read-package-up ^11.0.0 (#6314)
* fix(deps): replace dependency read-pkg-up with read-package-up ^11.0.0 * chore: package was renamed --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Mateusz Bocian <mrstork@users.noreply.github.com>
1 parent a14b9d5 commit 16f548a

File tree

16 files changed

+139
-36
lines changed

16 files changed

+139
-36
lines changed

package-lock.json

Lines changed: 124 additions & 21 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
@@ -110,7 +110,7 @@
110110
"pkg-dir": "^7.0.0",
111111
"pretty-ms": "^8.0.0",
112112
"ps-list": "^8.0.0",
113-
"read-pkg-up": "^9.0.0",
113+
"read-package-up": "^11.0.0",
114114
"readdirp": "^3.4.0",
115115
"resolve": "^2.0.0-next.5",
116116
"rfdc": "^1.3.0",

packages/build/src/plugins/compatibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _pEvery from 'p-every'
22
import pLocate from 'p-locate'
3-
import { PackageJson } from 'read-pkg-up'
3+
import { PackageJson } from 'read-package-up'
44
import semver from 'semver'
55

66
import { FeatureFlags } from '../core/feature_flags.js'

packages/build/src/plugins/expected_version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PackageJson } from 'read-pkg-up'
1+
import { PackageJson } from 'read-package-up'
22
import semver from 'semver'
33

44
import { FeatureFlags } from '../core/feature_flags.js'

packages/build/src/plugins/manifest/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PackageJson } from 'read-pkg-up'
1+
import { PackageJson } from 'read-package-up'
22

33
import { addPluginLoadErrorStatus } from '../../status/load_error.js'
44

packages/build/src/plugins/options.ts

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

3-
import { PackageJson } from 'read-pkg-up'
3+
import { PackageJson } from 'read-package-up'
44
import semver from 'semver'
55

66
import { addErrorInfo } from '../error/info.js'

packages/build/src/plugins/plugin_conditions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { join } from 'path'
22

33
import _pEvery from 'p-every'
4-
import { PackageJson } from 'read-pkg-up'
4+
import { PackageJson } from 'read-package-up'
55
import semver from 'semver'
66

77
import { importJsonFile } from '../utils/json.js'

packages/build/src/utils/json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFile } from 'fs/promises'
22
import { fileURLToPath } from 'url'
33

4-
import type { PackageJson } from 'read-pkg-up'
4+
import type { PackageJson } from 'read-package-up'
55

66
// We know how our package.json looks like, so we can be very specific with the type
77
// and only add the properties we want to use

packages/build/src/utils/package.ts

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

3-
import { Options, PackageJson, readPackageUp } from 'read-pkg-up'
3+
import { Options, PackageJson, readPackageUp } from 'read-package-up'
44

55
type PackageResult = {
66
packageJson: PackageJson

packages/framework-info/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"locate-path": "^7.0.0",
6767
"p-filter": "^4.0.0",
6868
"p-locate": "^6.0.0",
69-
"read-pkg-up": "^9.0.0",
69+
"read-package-up": "^11.0.0",
7070
"semver": "^7.3.8"
7171
},
7272
"devDependencies": {

packages/framework-info/src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { cwd, version as nodejsVersion } from 'process'
22

33
import { locatePath } from 'locate-path'
4-
import { PackageJson, readPackageUp } from 'read-pkg-up'
4+
import { PackageJson, readPackageUp } from 'read-package-up'
55

66
interface PackageJsonInfo {
77
packageJson?: PackageJson

packages/framework-info/src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pFilter from 'p-filter'
2-
import type { PackageJson } from 'read-pkg-up'
2+
import type { PackageJson } from 'read-package-up'
33

44
import type { Context, PathExists } from './context.js'
55
import { usesFramework } from './detect.js'

packages/framework-info/src/package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { includeKeys } from 'filter-obj'
22
import isPlainObj from 'is-plain-obj'
3-
import type { PackageJson } from 'read-pkg-up'
3+
import type { PackageJson } from 'read-package-up'
44

55
export const getPackageJsonContent = function (packageJson: PackageJson | undefined) {
66
if (packageJson === undefined) {

packages/opentelemetry-sdk-setup/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@opentelemetry/core": "~1.24.0",
3939
"@opentelemetry/resources": "~1.24.0",
4040
"@opentelemetry/semantic-conventions": "~1.24.0",
41-
"read-pkg-up": "^9",
41+
"read-package-up": "^11.0.0",
4242
"yargs-parser": "^21.1.1"
4343
},
4444
"devDependencies": {

packages/opentelemetry-sdk-setup/src/sdk-setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { setMultiSpanAttributes } from '@netlify/opentelemetry-utils'
33
import { DiagLogLevel, TraceFlags, context, diag, trace } from '@opentelemetry/api'
44
import { Resource } from '@opentelemetry/resources'
55
import { SEMRESATTRS_SERVICE_NAME, SEMRESATTRS_SERVICE_VERSION } from '@opentelemetry/semantic-conventions'
6-
import type { PackageJson } from 'read-pkg-up'
6+
import type { PackageJson } from 'read-package-up'
77

88
import { getDiagLogger, loadBaggageFromFile } from './util.js'
99

packages/opentelemetry-sdk-setup/src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { readFile, realpath } from 'node:fs/promises'
33

44
import { diag, DiagLogger } from '@opentelemetry/api'
55
import { parseKeyPairsIntoRecord } from '@opentelemetry/core/build/src/baggage/utils.js'
6-
import { PackageJson, readPackageUp } from 'read-pkg-up'
6+
import { PackageJson, readPackageUp } from 'read-package-up'
77

88
/**
99
* Builds a function for logging data to a provided fileDescriptor (i.e. hidden from

0 commit comments

Comments
 (0)