Skip to content

Commit 49f2510

Browse files
committed
chore: wip
1 parent 3083b99 commit 49f2510

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

packages/launchpad/bin/cli.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,14 +2670,14 @@ catch (error) {
26702670
cli
26712671
.command('db:create', 'Create a database for the current project')
26722672
.option('--name <name>', 'Database name (defaults to project directory name)')
2673-
.option('--type <type>', 'Database type: postgres, mysql, sqlite', 'auto')
2674-
.option('--host <host>', 'Database host (for postgres/mysql)', 'localhost')
2673+
.option('--type <type>', 'Database type: postgres, mysql, sqlite', { default: 'auto' })
2674+
.option('--host <host>', 'Database host (for postgres/mysql)', { default: 'localhost' })
26752675
.option('--port <port>', 'Database port (postgres: 5432, mysql: 3306)')
26762676
.option('--user <user>', 'Database user')
26772677
.option('--password <password>', 'Database password')
2678-
.example('launchpad db:create', 'Create database with auto-detection')
2679-
.example('launchpad db:create --type postgres', 'Create PostgreSQL database')
2680-
.example('launchpad db:create --name myapp --type mysql', 'Create MySQL database named myapp')
2678+
.example('launchpad db:create # Create database with auto-detection')
2679+
.example('launchpad db:create --type postgres # Create PostgreSQL database')
2680+
.example('launchpad db:create --name myapp --type mysql # Create MySQL database named myapp')
26812681
.action(async (options: {
26822682
name?: string
26832683
type: string

packages/launchpad/src/services/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export async function startService(serviceName: string): Promise<boolean> {
9595
const autoInitResult = await autoInitializeDatabase(service)
9696
if (!autoInitResult) {
9797
console.error(`❌ Failed to auto-initialize ${service.definition.displayName}`)
98-
operation.result = 'error'
98+
operation.result = 'failure'
9999
operation.error = 'Auto-initialization failed'
100100
manager.operations.push(operation)
101101
return false

packages/launchpad/test/database-service-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ describe('Database Service Integration', () => {
224224
const config = meilisearch!.config!
225225
expect(config.masterKey).toBe('launchpad-dev-key-12345678901234567890123456789012')
226226
expect(typeof config.masterKey).toBe('string')
227-
expect(config.masterKey.length).toBeGreaterThan(32) // Ensure adequate key length
227+
expect((config.masterKey as string).length).toBeGreaterThan(32) // Ensure adequate key length
228228
})
229229

230230
it('should have proper Meilisearch environment variables', () => {

0 commit comments

Comments
 (0)