Commit dc766a8
fix(ci): build scrapegraph-js in-place and update smoke test for v2
The SDK is pinned to a GitHub commit (not on npm yet) and ships without a
prebuilt dist/, so module resolution fails right after bun install. Build it
as a post-install CI step until v2 lands on npm.
Also rewrite tests/smoke.test.ts — the old test still imported the v1
symbols (smartScraper, HISTORY_SERVICES) that no longer exist; replace
with a sanity check against the v2 scrapegraphai() factory.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent af777a8 commit dc766a8
2 files changed
Lines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
26 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
7 | 15 | | |
0 commit comments