Skip to content
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
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Build the internal ui and data packages as registered script modules (wpScriptModuleExports) so consumers externalize them instead of bundling per-consumer copies: styled ui components stay out of style-less builds, and data's QueryClient becomes a genuine page-wide singleton.
3 changes: 3 additions & 0 deletions projects/packages/premium-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
"@automattic/number-formatters": "workspace:*",
"@automattic/ui": "1.0.2",
"@date-fns/tz": "1.4.1",
"@jetpack-premium-analytics/datetime": "link:packages/datetime",
Comment thread
nerrad marked this conversation as resolved.
"@jetpack-premium-analytics/formatters": "link:packages/formatters",
"@jetpack-premium-analytics/ui": "link:packages/ui",
"@tanstack/react-query": "5.90.8",
"@wordpress/api-fetch": "7.48.0",
"@wordpress/boot": "0.14.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"type": "module",
"main": "src/index.ts",
"module": "build-module/index.mjs",
"wpScriptModuleExports": "./build-module/index.mjs",
"types": "src/index.ts",
"sideEffects": false,
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions projects/packages/premium-analytics/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"private": true,
"type": "module",
"main": "src/index.ts",
"module": "build-module/index.mjs",
"wpScriptModuleExports": "./build-module/index.mjs",
"types": "src/index.ts",
"sideEffects": [
"*.scss"
Expand Down
Loading