Commit e11da2e
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 9fa96f6 commit e11da2e
1,107 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 | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| |||
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
221 | | - | |
222 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
| |||
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
252 | | - | |
253 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
254 | 263 | | |
255 | 264 | | |
256 | 265 | | |
| |||
284 | 293 | | |
285 | 294 | | |
286 | 295 | | |
287 | | - | |
288 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
289 | 301 | | |
290 | 302 | | |
291 | 303 | | |
| |||
331 | 343 | | |
332 | 344 | | |
333 | 345 | | |
334 | | - | |
335 | | - | |
| 346 | + | |
| 347 | + | |
336 | 348 | | |
337 | 349 | | |
338 | 350 | | |
| |||
351 | 363 | | |
352 | 364 | | |
353 | 365 | | |
354 | | - | |
| 366 | + | |
355 | 367 | | |
356 | | - | |
| 368 | + | |
357 | 369 | | |
358 | 370 | | |
359 | 371 | | |
| |||
363 | 375 | | |
364 | 376 | | |
365 | 377 | | |
366 | | - | |
| 378 | + | |
367 | 379 | | |
368 | | - | |
| 380 | + | |
369 | 381 | | |
370 | 382 | | |
371 | 383 | | |
| |||
391 | 403 | | |
392 | 404 | | |
393 | 405 | | |
394 | | - | |
| 406 | + | |
395 | 407 | | |
396 | 408 | | |
397 | 409 | | |
398 | 410 | | |
399 | 411 | | |
400 | 412 | | |
401 | 413 | | |
402 | | - | |
403 | | - | |
| 414 | + | |
| 415 | + | |
404 | 416 | | |
405 | 417 | | |
406 | 418 | | |
407 | 419 | | |
408 | 420 | | |
409 | 421 | | |
410 | | - | |
| 422 | + | |
411 | 423 | | |
412 | 424 | | |
413 | 425 | | |
| |||
748 | 760 | | |
749 | 761 | | |
750 | 762 | | |
751 | | - | |
752 | | - | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
753 | 768 | | |
754 | 769 | | |
755 | 770 | | |
| |||
790 | 805 | | |
791 | 806 | | |
792 | 807 | | |
793 | | - | |
794 | | - | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
795 | 813 | | |
796 | 814 | | |
797 | 815 | | |
| |||
800 | 818 | | |
801 | 819 | | |
802 | 820 | | |
803 | | - | |
| 821 | + | |
804 | 822 | | |
805 | 823 | | |
806 | 824 | | |
| |||
810 | 828 | | |
811 | 829 | | |
812 | 830 | | |
813 | | - | |
| 831 | + | |
814 | 832 | | |
815 | 833 | | |
816 | 834 | | |
| |||
822 | 840 | | |
823 | 841 | | |
824 | 842 | | |
| 843 | + | |
825 | 844 | | |
826 | 845 | | |
827 | 846 | | |
828 | 847 | | |
829 | 848 | | |
830 | | - | |
| 849 | + | |
831 | 850 | | |
832 | 851 | | |
833 | 852 | | |
| |||
853 | 872 | | |
854 | 873 | | |
855 | 874 | | |
856 | | - | |
857 | | - | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
858 | 880 | | |
859 | 881 | | |
860 | 882 | | |
861 | 883 | | |
862 | | - | |
| 884 | + | |
863 | 885 | | |
864 | 886 | | |
865 | 887 | | |
| |||
870 | 892 | | |
871 | 893 | | |
872 | 894 | | |
873 | | - | |
| 895 | + | |
874 | 896 | | |
875 | 897 | | |
876 | 898 | | |
| |||
887 | 909 | | |
888 | 910 | | |
889 | 911 | | |
890 | | - | |
891 | | - | |
| 912 | + | |
| 913 | + | |
892 | 914 | | |
893 | 915 | | |
894 | 916 | | |
895 | 917 | | |
896 | 918 | | |
897 | | - | |
| 919 | + | |
898 | 920 | | |
899 | 921 | | |
900 | | - | |
901 | | - | |
| 922 | + | |
| 923 | + | |
902 | 924 | | |
903 | 925 | | |
904 | 926 | | |
| |||
| 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