Skip to content
Closed
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
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@
{ "path": "storybook" },
{ "path": "test/e2e" },
{ "path": "test/storybook-playwright" },
{ "path": "test/performance" }
{ "path": "test/performance" },
{ "path": "widgets" }
],
"files": []
}
37 changes: 37 additions & 0 deletions widgets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "@wordpress/widgets-app",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found it surprising that we need package.json at the root of widgets. How do we solve this for the /routes top-level folder?

@simison simison May 14, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking further; perhaps each widget should have its own package.json?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I thought of that as well.

"version": "0.0.0",
"description": "Application widgets surfaced by the Gutenberg editor.",
"private": true,
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress",
"gutenberg",
"widgets"
],
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/widgets",
"repository": {
"type": "git",
"url": "git+https://github.com/WordPress/gutenberg.git",
"directory": "widgets"
},
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"dependencies": {
"@wordpress/core-data": "file:../packages/core-data",
"@wordpress/data": "file:../packages/data",
"@wordpress/dataviews": "file:../packages/dataviews",
"@wordpress/date": "file:../packages/date",
"@wordpress/element": "file:../packages/element",
"@wordpress/html-entities": "file:../packages/html-entities",
"@wordpress/i18n": "file:../packages/i18n",
"@wordpress/icons": "file:../packages/icons",
"@wordpress/ui": "file:../packages/ui",
"clsx": "^2.1.1"
},
"publishConfig": {
"access": "public"
}
}
21 changes: 21 additions & 0 deletions widgets/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://json.schemastore.org/tsconfig.json",
"extends": "../tsconfig.base.json",
"compilerOptions": {
"rootDir": ".",
"types": [ "react", "style-imports", "react-css-custom-properties" ]
},
"references": [
{ "path": "../packages/core-data" },
{ "path": "../packages/data" },
{ "path": "../packages/dataviews" },
{ "path": "../packages/date" },
{ "path": "../packages/element" },
{ "path": "../packages/html-entities" },
{ "path": "../packages/i18n" },
{ "path": "../packages/icons" },
{ "path": "../packages/ui" }
],
"include": [ "**/*.ts", "**/*.tsx" ],
"exclude": [ "**/test/**", "**/build/**", "**/build-types/**" ]
}
Loading