Commit 20669e5
committed
chore: pre-shape repo into pnpm-workspace monorepo layout
Reshape the CLI repo into a pnpm workspace so it can be cleanly
git-subtree-imported into the future getsentry/toolkit monorepo
(#1238, part of #1248).
Layout:
- Move the CLI package into packages/cli/ (src, test, script, patches,
plugins, install, configs, package.json).
- Move docs/ into apps/cli-docs/.
- Keep GitHub/Craft-read files at the repo root (.github/, .craft.yml,
LICENSE, CHANGELOG, .gitignore, .nojekyll) so the repo stays fully
operational (releases + nightlies) through and after the merge.
- Add pnpm-workspace.yaml (packages/* + apps/*) and a thin delegating
root package.json that forwards scripts to the sentry package and
hoists the pnpm block (patchedDependencies now reference
packages/cli/patches/**).
- Add a minimal root README; the CLI README moves to packages/cli/.
Internal path fixes:
- Shared script/paths.ts (DOCS_ROOT etc.) for cross-package doc paths;
generate/check scripts updated to use it.
- Re-point apps/cli-docs public symlinks (install, skill files) to the
new packages/cli/ locations.
- build.ts / bundle.ts resolve @sentry/symbolic WASM via module
resolution and invoke fossilize via `pnpm exec` (both hoist to the
workspace root now).
- biome.jsonc + packages/cli/.gitignore so Biome finds an ignore file.
- .gitignore path-anchored entries updated to the nested layout.
Workflows / release (kept root-relative where GitHub/Craft require it):
- ci.yml, docs-preview.yml, eval-skill-fork.yml: paths-filter globs,
node_modules cache paths, patches hashFiles glob, artifact paths
(packages/cli/dist-bin, apps/cli-docs/dist), docs working-directory,
package.json version reads, npm pack dir.
- .craft.yml pre/post release commands cd into packages/cli.
node-linker=isolated (was hoisted): under the workspace, hoisted mode
let an unpatched transitive @sentry/core@10.65.0 (via
@spotlightjs/spotlight -> @sentry/node) win the flat hoist over the
patched direct @sentry/core@10.63.0, so the CLI bundled the unpatched
copy (masked only by esbuild tree-shaking). isolated mode keeps
per-package variants so the patched copy is used. check-patches.ts now
reads patchedDependencies from the workspace root and resolves the
package copy the CLI actually links via require.resolve.
Verified: typecheck, lint, all check:* scripts, build (+ binary smoke,
patched bundle), and the full unit suite (399 files, 8474 passed).1 parent 48f5e63 commit 20669e5
1,106 files changed
Lines changed: 4633 additions & 6093 deletions
File tree
- .github/workflows
- apps/cli-docs
- public
- .well-known/skills/sentry-cli
- src
- assets
- components
- content/docs
- fonts
- fragments
- commands
- styles
- docs
- public
- .well-known/skills/sentry-cli
- packages/cli
- .claude-plugin
- .cursor
- rules
- skills/sentry-cli
- .vscode
- assets
- lint-rules
- patches
- plugins
- sentry-cli
- .claude-plugin
- skills/sentry-cli
- references
- script
- src
- commands
- alert
- issues
- metrics
- auth
- build
- cli
- code-mappings
- dart-symbol-map
- dashboard
- widget
- debug-files
- event
- issue
- local
- log
- monitor
- org
- proguard
- project
- react-native
- release
- replay
- repo
- snapshots
- sourcemap
- span
- team
- trace
- trial
- generated
- lib
- api
- bash-hook
- build
- db
- dif
- dsn
- envelope
- formatters
- init
- tools
- ui
- react-native
- scan
- snapshots
- sourcemap
- telemetry
- types
- test
- commands
- alert
- issues
- metrics
- auth
- build
- cli
- code-mappings
- dart-symbol-map
- dashboard
- widget
- debug-files
- event
- issue
- local
- log
- monitor
- proguard
- project
- react-native
- release
- replay
- repo
- snapshots
- sourcemap
- span
- team
- trace
- trial
- e2e
- fixtures
- bench
- dif
- errors
- patches
- regions
- eu
- us
- init-eval
- helpers
- templates
- express-app
- src
- nextjs-app
- src/app
- python-fastapi-app
- python-flask-app
- react-vite-app
- src
- sveltekit-app
- src
- routes
- lib
- api
- bash-hook
- bench
- build
- db
- dif
- dsn
- envelope
- formatters
- init
- tools
- ui
- react-native
- scan
- security
- snapshots
- sourcemap
- telemetry
- mocks
- model-based
- script
- skill-eval
- helpers
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
198 | 201 | | |
199 | 202 | | |
200 | 203 | | |
201 | | - | |
202 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | | - | |
233 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
234 | 243 | | |
235 | 244 | | |
236 | 245 | | |
| |||
264 | 273 | | |
265 | 274 | | |
266 | 275 | | |
267 | | - | |
268 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
269 | 281 | | |
270 | 282 | | |
271 | 283 | | |
| |||
311 | 323 | | |
312 | 324 | | |
313 | 325 | | |
314 | | - | |
315 | | - | |
| 326 | + | |
| 327 | + | |
316 | 328 | | |
317 | 329 | | |
318 | 330 | | |
| |||
331 | 343 | | |
332 | 344 | | |
333 | 345 | | |
334 | | - | |
| 346 | + | |
335 | 347 | | |
336 | | - | |
| 348 | + | |
337 | 349 | | |
338 | 350 | | |
339 | 351 | | |
| |||
343 | 355 | | |
344 | 356 | | |
345 | 357 | | |
346 | | - | |
| 358 | + | |
347 | 359 | | |
348 | | - | |
| 360 | + | |
349 | 361 | | |
350 | 362 | | |
351 | 363 | | |
| |||
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
374 | | - | |
| 386 | + | |
375 | 387 | | |
376 | 388 | | |
377 | 389 | | |
378 | 390 | | |
379 | 391 | | |
380 | 392 | | |
381 | 393 | | |
382 | | - | |
383 | | - | |
| 394 | + | |
| 395 | + | |
384 | 396 | | |
385 | 397 | | |
386 | 398 | | |
387 | 399 | | |
388 | 400 | | |
389 | 401 | | |
390 | | - | |
| 402 | + | |
391 | 403 | | |
392 | 404 | | |
393 | 405 | | |
| |||
728 | 740 | | |
729 | 741 | | |
730 | 742 | | |
731 | | - | |
732 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
733 | 748 | | |
734 | 749 | | |
735 | 750 | | |
| |||
770 | 785 | | |
771 | 786 | | |
772 | 787 | | |
773 | | - | |
774 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
775 | 793 | | |
776 | 794 | | |
777 | 795 | | |
| |||
780 | 798 | | |
781 | 799 | | |
782 | 800 | | |
783 | | - | |
| 801 | + | |
784 | 802 | | |
785 | 803 | | |
786 | 804 | | |
| |||
790 | 808 | | |
791 | 809 | | |
792 | 810 | | |
793 | | - | |
| 811 | + | |
794 | 812 | | |
795 | 813 | | |
796 | 814 | | |
| |||
802 | 820 | | |
803 | 821 | | |
804 | 822 | | |
| 823 | + | |
805 | 824 | | |
806 | 825 | | |
807 | 826 | | |
808 | 827 | | |
809 | 828 | | |
810 | | - | |
| 829 | + | |
811 | 830 | | |
812 | 831 | | |
813 | 832 | | |
| |||
833 | 852 | | |
834 | 853 | | |
835 | 854 | | |
836 | | - | |
837 | | - | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
838 | 860 | | |
839 | 861 | | |
840 | 862 | | |
841 | 863 | | |
842 | | - | |
| 864 | + | |
843 | 865 | | |
844 | 866 | | |
845 | 867 | | |
| |||
850 | 872 | | |
851 | 873 | | |
852 | 874 | | |
853 | | - | |
| 875 | + | |
854 | 876 | | |
855 | 877 | | |
856 | 878 | | |
| |||
867 | 889 | | |
868 | 890 | | |
869 | 891 | | |
870 | | - | |
871 | | - | |
| 892 | + | |
| 893 | + | |
872 | 894 | | |
873 | 895 | | |
874 | 896 | | |
875 | 897 | | |
876 | 898 | | |
877 | | - | |
| 899 | + | |
878 | 900 | | |
879 | 901 | | |
880 | | - | |
881 | | - | |
| 902 | + | |
| 903 | + | |
882 | 904 | | |
883 | 905 | | |
884 | 906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
105 | | - | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
132 | | - | |
133 | | - | |
| 135 | + | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
183 | | - | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
0 commit comments