Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts: Update dependnecies shared with other WordPress packages #37395

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,660 changes: 302 additions & 1,358 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"rtlcss": "2.6.2",
"sass": "1.35.2",
"sass-loader": "12.1.0",
"semver": "7.3.2",
"semver": "7.3.5",
"simple-git": "^2.35.0",
"snapshot-diff": "0.8.1",
"source-map-loader": "3.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/create-block/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Internal

- The bundled `npm-package-arg` dependency has been updated from requiring `^8.0.1` to requiring `^8.1.5` ([#37395](https://github.com/WordPress/gutenberg/pull/37395)).

## 2.7.0 (2021-11-07)

### New Features
Expand Down
2 changes: 1 addition & 1 deletion packages/create-block/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"lodash": "^4.17.21",
"make-dir": "^3.0.0",
"mustache": "^4.0.0",
"npm-package-arg": "^8.0.1",
"npm-package-arg": "^8.1.5",
"rimraf": "^3.0.2",
"write-pkg": "^4.0.0"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/lazy-import/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Internal

- The bundled `npm-package-arg` dependency has been updated from requiring `^8.0.1` to requiring `^8.1.5` ([#37395](https://github.com/WordPress/gutenberg/pull/37395)).
- The bundled `semver` dependency has been updated from requiring `^7.3.2` to requiring `^7.3.5` ([#37395](https://github.com/WordPress/gutenberg/pull/37395)).

## 1.2.0 (2020-12-17)

### New Feature
Expand Down
4 changes: 2 additions & 2 deletions packages/lazy-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"types": "build-types",
"dependencies": {
"execa": "^4.0.2",
"npm-package-arg": "^8.0.1",
"semver": "^7.3.2"
"npm-package-arg": "^8.1.5",
"semver": "^7.3.5"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 4 additions & 0 deletions packages/scripts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@

- Prevent the `CleanWebpackPlugin` plugin from deleting webpack assets during multi-configuration builds [#35980](https://github.com/WordPress/gutenberg/issues/35980).

### Internal

- The bundled `read-pkg-up` dependency has been updated from requiring `^1.0.1` to requiring `^7.0.1` ([#37395](https://github.com/WordPress/gutenberg/pull/37395)).

## 19.2.0 (2021-11-15)

### New Features
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"prettier": "npm:wp-prettier@2.2.1-beta-1",
"puppeteer-core": "^11.0.0",
"react-refresh": "^0.10.0",
"read-pkg-up": "^1.0.1",
"read-pkg-up": "^7.0.1",
"resolve-bin": "^0.4.0",
"sass": "^1.35.2",
"sass-loader": "^12.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/scripts/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function checkPrettier() {
try {
const prettierResolvePath = require.resolve( 'prettier' );
const prettierPackageJson = readPkgUp( { cwd: prettierResolvePath } );
const prettierPackageName = prettierPackageJson.pkg.name;
const prettierPackageName = prettierPackageJson.packageJson.name;

if (
! [ 'wp-prettier', '@wordpress/prettier' ].includes(
Expand Down
7 changes: 4 additions & 3 deletions packages/scripts/utils/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ const { sync: readPkgUp } = require( 'read-pkg-up' );
*/
const { getCurrentWorkingDirectory } = require( './process' );

const { pkg, path: pkgPath } = readPkgUp( {
const { packageJson, path: pkgPath } = readPkgUp( {
cwd: realpathSync( getCurrentWorkingDirectory() ),
} );

const getPackagePath = () => pkgPath;

const getPackageProp = ( prop ) => pkg && pkg[ prop ];
const getPackageProp = ( prop ) => packageJson && packageJson[ prop ];

const hasPackageProp = ( prop ) => pkg && pkg.hasOwnProperty( prop );
const hasPackageProp = ( prop ) =>
packageJson && packageJson.hasOwnProperty( prop );

module.exports = {
getPackagePath,
Expand Down