Commit 31ce517
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 96cd99d commit 31ce517
1,122 files changed
Lines changed: 4651 additions & 865 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 | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
| |||
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
227 | | - | |
228 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
| |||
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
258 | | - | |
259 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
260 | 269 | | |
261 | 270 | | |
262 | 271 | | |
| |||
290 | 299 | | |
291 | 300 | | |
292 | 301 | | |
293 | | - | |
294 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
295 | 307 | | |
296 | 308 | | |
297 | 309 | | |
| |||
337 | 349 | | |
338 | 350 | | |
339 | 351 | | |
340 | | - | |
341 | | - | |
| 352 | + | |
| 353 | + | |
342 | 354 | | |
343 | 355 | | |
344 | 356 | | |
| |||
357 | 369 | | |
358 | 370 | | |
359 | 371 | | |
360 | | - | |
| 372 | + | |
361 | 373 | | |
362 | | - | |
| 374 | + | |
363 | 375 | | |
364 | 376 | | |
365 | 377 | | |
| |||
369 | 381 | | |
370 | 382 | | |
371 | 383 | | |
372 | | - | |
| 384 | + | |
373 | 385 | | |
374 | | - | |
| 386 | + | |
375 | 387 | | |
376 | 388 | | |
377 | 389 | | |
| |||
397 | 409 | | |
398 | 410 | | |
399 | 411 | | |
400 | | - | |
| 412 | + | |
401 | 413 | | |
402 | 414 | | |
403 | 415 | | |
404 | 416 | | |
405 | 417 | | |
406 | 418 | | |
407 | 419 | | |
408 | | - | |
409 | | - | |
| 420 | + | |
| 421 | + | |
410 | 422 | | |
411 | 423 | | |
412 | 424 | | |
413 | 425 | | |
414 | 426 | | |
415 | 427 | | |
416 | | - | |
| 428 | + | |
417 | 429 | | |
418 | 430 | | |
419 | 431 | | |
| |||
754 | 766 | | |
755 | 767 | | |
756 | 768 | | |
757 | | - | |
758 | | - | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
759 | 774 | | |
760 | 775 | | |
761 | 776 | | |
| |||
801 | 816 | | |
802 | 817 | | |
803 | 818 | | |
804 | | - | |
805 | | - | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
806 | 824 | | |
807 | 825 | | |
808 | 826 | | |
| |||
831 | 849 | | |
832 | 850 | | |
833 | 851 | | |
834 | | - | |
| 852 | + | |
835 | 853 | | |
836 | 854 | | |
837 | 855 | | |
| |||
843 | 861 | | |
844 | 862 | | |
845 | 863 | | |
846 | | - | |
| 864 | + | |
847 | 865 | | |
848 | 866 | | |
849 | 867 | | |
| |||
854 | 872 | | |
855 | 873 | | |
856 | 874 | | |
| 875 | + | |
| 876 | + | |
857 | 877 | | |
858 | 878 | | |
859 | 879 | | |
860 | 880 | | |
861 | 881 | | |
862 | | - | |
| 882 | + | |
863 | 883 | | |
864 | 884 | | |
865 | 885 | | |
| |||
885 | 905 | | |
886 | 906 | | |
887 | 907 | | |
888 | | - | |
889 | | - | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
890 | 913 | | |
891 | 914 | | |
892 | 915 | | |
893 | 916 | | |
894 | | - | |
| 917 | + | |
895 | 918 | | |
896 | 919 | | |
897 | 920 | | |
| |||
902 | 925 | | |
903 | 926 | | |
904 | 927 | | |
905 | | - | |
| 928 | + | |
906 | 929 | | |
907 | 930 | | |
908 | 931 | | |
| |||
919 | 942 | | |
920 | 943 | | |
921 | 944 | | |
922 | | - | |
923 | | - | |
| 945 | + | |
| 946 | + | |
924 | 947 | | |
925 | 948 | | |
926 | 949 | | |
927 | 950 | | |
928 | 951 | | |
929 | | - | |
| 952 | + | |
930 | 953 | | |
931 | 954 | | |
932 | | - | |
933 | | - | |
| 955 | + | |
| 956 | + | |
934 | 957 | | |
935 | 958 | | |
936 | 959 | | |
| |||
| 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