Commit 9255570
authored
Update SQLite refresh script to support the SQLite monorepo (#3452)
## Summary
- The
[sqlite-database-integration](https://github.com/WordPress/sqlite-database-integration)
repository was restructured into a monorepo
([WordPress/sqlite-database-integration#334](WordPress/sqlite-database-integration#334)).
The plugin now needs to be built from a subpackage.
- The refresh script now shallow-clones the SQLite repository and runs
its build script (`bin/build-sqlite-plugin-zip.sh`) to produce a
self-contained plugin ZIP with the driver symlink resolved.
- For older tagged versions (pre-monorepo), the script falls back to
downloading the GitHub archive, which still works correctly.
## Test plan
- [x] Verified `npx nx run
playground-wordpress-builds:bundle-sqlite-database` succeeds for both
`trunk` and `v2.1.16`
- [x] Verified the trunk ZIP contains the correct flat plugin structure
with `db.copy`, `load.php`, and a real `wp-includes/database/` directory
- [x] Verified the v2.1.16 ZIP is identical to the previous version (84
KB)
- [x] Verify Playground boots correctly with the new trunk ZIP (run `npm
run dev` and confirm SQLite works)1 parent 78eaacc commit 9255570
3 files changed
Lines changed: 42 additions & 15 deletions
File tree
- packages/playground/wordpress-builds
- build
- src/sqlite-database-integration
Lines changed: 41 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | 10 | | |
| |||
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
24 | | - | |
25 | | - | |
26 | 29 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 42 | + | |
49 | 43 | | |
50 | 44 | | |
51 | 45 | | |
| |||
106 | 100 | | |
107 | 101 | | |
108 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
Binary file not shown.
0 commit comments