Skip to content

Commit b6fa012

Browse files
authored
fix: swap from read-package-up to read-pkg-up (#6189)
read-package-up was a breaking change from read-pkg-up, the breaking change was requiring node 18 sindresorhus/read-package-up@v10.1.0...v11.0.0
1 parent 6e57910 commit b6fa012

File tree

20 files changed

+10055
-6811
lines changed

20 files changed

+10055
-6811
lines changed

package-lock.json

Lines changed: 10029 additions & 6792 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-package-up": "^11.0.0",
113+
"read-pkg-up": "^9.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-package-up'
3+
import { PackageJson } from 'read-pkg-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-package-up'
1+
import { PackageJson } from 'read-pkg-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-package-up'
1+
import { PackageJson } from 'read-pkg-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-package-up'
3+
import { PackageJson } from 'read-pkg-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-package-up'
4+
import { PackageJson } from 'read-pkg-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-package-up'
4+
import type { PackageJson } from 'read-pkg-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-package-up'
3+
import { Options, PackageJson, readPackageUp } from 'read-pkg-up'
44

55
type PackageResult = {
66
packageJson: PackageJson

packages/edge-bundler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"better-ajv-errors": "^1.2.0",
6464
"common-path-prefix": "^3.0.0",
6565
"env-paths": "^3.0.0",
66-
"esbuild": "0.21.2",
66+
"esbuild": "0.25.2",
6767
"execa": "^7.0.0",
6868
"find-up": "^6.3.0",
6969
"get-package-name": "^2.2.0",

0 commit comments

Comments
 (0)