Commit 63ddde6
committed
Make a fresh clone work without submodules or a build step
A fresh `git clone && bun install` previously could not run `bun dev`
or `bun run test:e2e`:
- @executor-js/vite-plugin and @executor-js/react/console-routes only
ship built `dist/` entrypoints, which used to require knowing to run
`turbo run build` after installing. The root `prepare` hook now
bundles both on every install (tsup, well under a second), so vite
configs resolve on a fresh clone. (Pointing `exports.default` at the
TS source instead would only work on Node >= 23.6 type-stripping —
vite externalizes these imports from vite.config.ts, so Node itself
has to load them.)
- testkit still imported `vendor/mcporter/dist`, which requires
initializing the submodule AND building it with pnpm. Consume the
fork from npm as @executor-js/mcporter instead, like e2e/ already
does; the submodule stays for developing the fork itself (see
vendor/README.md).
(An earlier version of this branch also injected an in-memory WorkOS
Vault client under EXECUTOR_E2E_STUB; the wire-level WorkOS emulator
(#931) deleted the stub layer and serves the real /vault/v1/kv routes,
so that workaround is no longer needed.)
Verified by cloning the repo fresh into /tmp: install, format, lint,
typecheck, and the full e2e suite (cloud + selfhost) all pass with no
submodules initialized and no manual build step.1 parent 3530d42 commit 63ddde6
12 files changed
Lines changed: 1903 additions & 38 deletions
File tree
- e2e/src/surfaces
- packages/core/vite-plugin
- testkit
- src
- vendor
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
64 | 65 | | |
65 | | - | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments