Skip to content

Commit 3cd52a4

Browse files
manzoorwanijkmanzoorwanijkaduthSirLouenciampo
authored
Fix missing dependencies for packages (#74310)
Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org> Co-authored-by: SirLouen <sirlouen@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
1 parent 7d8175f commit 3cd52a4

File tree

72 files changed

+1150
-312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+1150
-312
lines changed

bin/check-licenses.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ import spawn from 'cross-spawn';
1010
*/
1111
import { checkDeps, getLicenses } from '../packages/scripts/utils/license.js';
1212

13-
const ignored = [ '@ampproject/remapping', 'webpack' ];
13+
const ignored = [
14+
'@ampproject/remapping',
15+
'webpack',
16+
// Jest internals with Apache-2.0 license - only used for testing, not distributed.
17+
'bser',
18+
'fb-watchman',
19+
'walker',
20+
];
1421

1522
/*
1623
* `wp-scripts check-licenses` uses prod and dev dependencies of the package to scan for dependencies. With npm workspaces, workspace packages (the @wordpress/* packages) are not listed in the main package json and this approach does not work.

package-lock.json

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

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@
4747
"@playwright/test": "1.57.0",
4848
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
4949
"@storybook/addon-a11y": "9.1.17",
50-
"@storybook/addon-docs": "9.1.17",
50+
"@storybook/addon-docs": "^9.1.17",
5151
"@storybook/addon-webpack5-compiler-babel": "3.0.3",
5252
"@storybook/icons": "1.4.0",
5353
"@storybook/react-webpack5": "9.1.17",
54-
"@testing-library/jest-dom": "5.16.5",
54+
"@testing-library/jest-dom": "^6.6.3",
5555
"@testing-library/react": "14.3.0",
5656
"@testing-library/user-event": "14.4.3",
57-
"@types/node": "20.17.10",
57+
"@types/node": "^20.17.10",
5858
"@types/prettier": "2.4.4",
59-
"@types/react": "18.3.1",
60-
"@types/react-dom": "18.3.0",
59+
"@types/react": "^18.3.27",
60+
"@types/react-dom": "^18.3.1",
6161
"@types/semver": "7.3.8",
6262
"@types/sprintf-js": "1.1.2",
6363
"@types/uuid": "8.3.1",
@@ -73,8 +73,8 @@
7373
"concurrently": "3.5.0",
7474
"cross-env": "7.0.3",
7575
"cross-spawn": "^7.0.6",
76-
"css-loader": "6.2.0",
77-
"esbuild": "0.25.10",
76+
"css-loader": "^6.2.0",
77+
"esbuild": "^0.27.2",
7878
"eslint-import-resolver-typescript": "4.4.4",
7979
"eslint-plugin-eslint-comments": "3.1.2",
8080
"eslint-plugin-import": "2.25.2",
@@ -94,7 +94,7 @@
9494
"jest-environment-jsdom": "^30.2.0",
9595
"jest-jasmine2": "29.6.2",
9696
"jest-junit": "13.0.0",
97-
"jest-message-util": "29.6.2",
97+
"jest-message-util": "^29.6.2",
9898
"jest-watch-typeahead": "2.2.2",
9999
"json2md": "2.0.1",
100100
"jsonc-parser": "3.3.1",
@@ -114,14 +114,14 @@
114114
"reassure": "0.7.1",
115115
"resize-observer-polyfill": "1.5.1",
116116
"rimraf": "5.0.10",
117-
"sass": "1.54.0",
117+
"sass": "^1.54.0",
118118
"sass-embedded": "1.93.2",
119119
"sass-loader": "16.0.3",
120120
"semver": "7.5.4",
121121
"simple-git": "3.24.0",
122122
"snapshot-diff": "0.10.0",
123123
"sprintf-js": "1.1.1",
124-
"storybook": "9.1.17",
124+
"storybook": "^9.1.17",
125125
"storybook-addon-source-link": "1.0.1",
126126
"storybook-addon-tag-badges": "2.0.4",
127127
"style-loader": "3.2.1",

packages/babel-plugin-import-jsx-pragma/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"./package.json": "./package.json"
3737
},
3838
"devDependencies": {
39-
"@babel/plugin-syntax-jsx": "7.25.7"
39+
"@babel/plugin-syntax-jsx": "^7.25.7"
4040
},
4141
"peerDependencies": {
4242
"@babel/core": "^7.25.7"

packages/block-serialization-default-parser/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
"wpScript": true,
4545
"types": "build-types",
4646
"sideEffects": false,
47+
"devDependencies": {
48+
"@wordpress/block-serialization-spec-parser": "file:../block-serialization-spec-parser"
49+
},
4750
"publishConfig": {
4851
"access": "public"
4952
}

packages/block-serialization-spec-parser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"main": "parser.js",
2828
"exports": {
2929
".": "./parser.js",
30+
"./shared-tests": "./shared-tests.js",
3031
"./package.json": "./package.json"
3132
},
3233
"wpScript": true,

packages/boot/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"dependencies": {
4444
"@wordpress/a11y": "file:../a11y",
4545
"@wordpress/admin-ui": "file:../admin-ui",
46+
"@wordpress/base-styles": "file:../base-styles",
4647
"@wordpress/commands": "file:../commands",
4748
"@wordpress/components": "file:../components",
4849
"@wordpress/compose": "file:../compose",

packages/components/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Code Quality
6+
7+
- Fix missing dependencies. [#74310](https://github.com/WordPress/gutenberg/pull/74310)
8+
59
### Breaking Changes
610

711
- Validated form controls (private API): Removed `onValidate` prop (use `onChange` to set `customValidity` messages, or add conditionals directly inside the `customValidity` prop instead) ([#73559](https://github.com/WordPress/gutenberg/pull/73559)).

packages/components/global.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// When typeRoots is set in tsconfig, TypeScript only includes
2+
// type definitions found in the specified directories.
3+
// To ensure that global types are included, we need to
4+
// explicitly reference them here.
5+
import '@testing-library/jest-dom';
6+
import '@wordpress/jest-console';
7+
import 'snapshot-diff';

packages/components/package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@
101101
},
102102
"devDependencies": {
103103
"@ariakit/test": "^0.4.7",
104+
"@storybook/addon-docs": "^9.1.17",
105+
"@testing-library/jest-dom": "^6.6.3",
106+
"@types/jest": "^29.5.14",
107+
"@wordpress/jest-console": "file:../jest-console",
108+
"csstype": "^3.2.3",
109+
"snapshot-diff": "^0.10.0",
110+
"storybook": "^9.1.17",
104111
"timezone-mock": "^1.3.6"
105112
},
106113
"peerDependencies": {

0 commit comments

Comments
 (0)