Commit b24ed74
authored
Fix SQLite plugin logging to respect skip option (#2924)
## Motivation for the change, related issues
Fixes logging in the CLI blueprints handler to display "Skipping SQLite
integration plugin setup..." when `--skip-sqlite-setup` is used, instead
of always showing "Fetching SQLite integration plugin..." regardless of
the skip option.
## Implementation details
Modified
`packages/playground/cli/src/blueprints-v1/blueprints-v1-handler.ts` to
conditionally log the appropriate message based on `skipSqliteSetup`.
## Testing Instructions (or ideally a Blueprint)
To test this change:
1. Set up [Playground repository
locally](https://github.com/wojtekn/wordpress-playground/blob/trunk/README.md#running-wordpress-playground-locally)
2. Run the CLI with `--skip-sqlite-setup` flag and verify the log shows
"Skipping..." message
3. Run the CLI without the flag and verify it shows "Fetching..."
message
Example commands:
```bash
# Should show "Skipping SQLite integration plugin setup..."
node --no-warnings=ExperimentalWarning --experimental-strip-types
--experimental-transform-types --import
./packages/meta/src/node-es-module-loader/register.mts
./packages/playground/cli/src/cli.ts server --skip-sqlite-setup
# Should show "Fetching SQLite integration plugin..."
node --no-warnings=ExperimentalWarning --experimental-strip-types
--experimental-transform-types --import
./packages/meta/src/node-es-module-loader/register.mts
./packages/playground/cli/src/cli.ts server1 parent c13d095 commit b24ed74
File tree
1 file changed
+8
-5
lines changed- packages/playground/cli/src/blueprints-v1
1 file changed
+8
-5
lines changedLines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
0 commit comments