Skip to content

Commit 0186f22

Browse files
tonyxiaoclaude
andcommitted
Fix consistency issues in visualizer + explorer scripts
- Move packages/visualizer → apps/visualizer (consistent with other apps) - Fix explorer-seed.ts: import from packages/source-stripe/src/openapi instead of deleted packages/sync-engine - Fix explorer-export.ts: output path apps/visualizer/public/explorer-data - Fix EXPLORER_RUNBOOK.md + apps/visualizer/README.md: replace pnpm tsx with bun run, update packages/visualizer refs to apps/visualizer - Add visualizer:with-data root script (explorer:build + visualizer) - Add pg to root devDependencies so explorer scripts resolve it Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
1 parent a07b2fc commit 0186f22

19 files changed

Lines changed: 141 additions & 27 deletions
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ This package contains the standalone browser UI for exploring generated Stripe s
55
The visualizer has two parts:
66

77
- `pnpm explorer:build` generates static artifacts.
8-
- `packages/visualizer` loads those artifacts into PGlite and lets you run SQL in the browser.
8+
- `apps/visualizer` loads those artifacts into PGlite and lets you run SQL in the browser.
99

1010
## Generated artifacts
1111

12-
- `packages/visualizer/public/explorer-data/bootstrap.sql`
13-
- `packages/visualizer/public/explorer-data/manifest.json`
12+
- `apps/visualizer/public/explorer-data/bootstrap.sql`
13+
- `apps/visualizer/public/explorer-data/manifest.json`
1414

1515
These files are generated and should stay out of version control.
1616

@@ -34,11 +34,11 @@ After hydration, all SQL runs locally in the browser against the generated Strip
3434
`pnpm explorer:build` is the normal command, but the underlying phase scripts still exist for debugging:
3535

3636
```bash
37-
pnpm tsx scripts/explorer-harness.ts start
38-
pnpm tsx scripts/explorer-migrate.ts --api-version=2020-08-27
39-
pnpm tsx scripts/explorer-seed.ts --api-version=2020-08-27 --seed=42
40-
pnpm tsx scripts/explorer-export.ts
41-
pnpm tsx scripts/explorer-harness.ts stop
37+
bun run scripts/explorer-harness.ts start
38+
bun run scripts/explorer-migrate.ts --api-version=2020-08-27
39+
bun run scripts/explorer-seed.ts --api-version=2020-08-27 --seed=42
40+
bun run scripts/explorer-export.ts
41+
bun run scripts/explorer-harness.ts stop
4242
```
4343

4444
## Notes
File renamed without changes.

packages/visualizer/public/explorer-data/manifest.json renamed to apps/visualizer/public/explorer-data/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,4 +227,4 @@
227227
"tablesWithData": 106,
228228
"emptyTables": []
229229
}
230-
}
230+
}
File renamed without changes.

0 commit comments

Comments
 (0)