@alicesystems/cli 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as createAliceCli } from "./src-BvIQ4Brs.mjs";
2
+ import { a as createAliceCli } from "./src-D7QghBiE.mjs";
3
3
  import { lineByLineConsoleLogger } from "trpc-cli";
4
4
  //#region src/cli.ts
5
5
  await createAliceCli().run({ logger: lineByLineConsoleLogger });
@@ -9402,11 +9402,11 @@ function updateRootPackageJson(vfs, config) {
9402
9402
  const scripts = pkgJson.scripts;
9403
9403
  const dbPackageName = `@${config.projectName}/database`;
9404
9404
  const filter = (workspace, script) => `turbo run ${script} -F ${workspace} --`;
9405
- scripts.dev = "turbo run dev";
9405
+ scripts.dev = "turbo run dev --filter=!native";
9406
9406
  scripts.build = "turbo run build";
9407
9407
  scripts["check-types"] = "turbo run check-types";
9408
9408
  scripts.test = "turbo run test";
9409
- scripts["dev:native"] = filter("native", "dev");
9409
+ scripts["dev:native"] = "pnpm --filter native run dev";
9410
9410
  scripts["dev:website"] = filter("website", "dev");
9411
9411
  scripts["dev:platform"] = filter("platform", "dev");
9412
9412
  scripts["dev:server"] = filter("server", "dev");
@@ -9924,8 +9924,9 @@ pnpm dev
9924
9924
 
9925
9925
  | Script | Description |
9926
9926
  | --- | --- |
9927
- | \`pnpm dev\` | Start all apps |
9928
- | \`pnpm dev:website\` / \`dev:platform\` / \`dev:server\` / \`dev:worker\` / \`dev:native\` | Start one app |
9927
+ | \`pnpm dev\` | Start the website, platform, server, worker and docs (not native) |
9928
+ | \`pnpm dev:website\` / \`dev:platform\` / \`dev:server\` / \`dev:worker\` | Start one app |
9929
+ | \`pnpm dev:native\` | Start the Expo app (run it in its own terminal) |
9929
9930
  | \`pnpm build\` | Build all apps |
9930
9931
  | \`pnpm check-types\` | Typecheck all packages |
9931
9932
  | \`pnpm test\` | Run the tests (Vitest) |
@@ -12527,10 +12528,31 @@ services:
12527
12528
  depends_on:
12528
12529
  postgres:
12529
12530
  condition: service_healthy
12531
+ migrate:
12532
+ condition: service_completed_successfully
12530
12533
  floci:
12531
12534
  condition: service_started
12532
12535
  restart: unless-stopped
12533
12536
 
12537
+ # Creates or updates the database tables, then exits. The server and worker wait for it.
12538
+ # With no committed migrations it pushes the schema; once \`pnpm db:generate\` has produced
12539
+ # migrations in packages/database/src/migrations it applies those instead.
12540
+ migrate:
12541
+ extends:
12542
+ service: server
12543
+ working_dir: /app/packages/database
12544
+ command:
12545
+ - sh
12546
+ - -c
12547
+ - if ls src/migrations/*.sql >/dev/null 2>&1; then ./node_modules/.bin/drizzle-kit migrate; else ./node_modules/.bin/drizzle-kit push --force; fi
12548
+ ports: !reset []
12549
+ healthcheck:
12550
+ disable: true
12551
+ depends_on: !override
12552
+ postgres:
12553
+ condition: service_healthy
12554
+ restart: "no"
12555
+
12534
12556
  worker:
12535
12557
  build:
12536
12558
  context: .
@@ -12546,6 +12568,8 @@ services:
12546
12568
  depends_on:
12547
12569
  postgres:
12548
12570
  condition: service_healthy
12571
+ migrate:
12572
+ condition: service_completed_successfully
12549
12573
  restart: unless-stopped
12550
12574
 
12551
12575
  # Floci emulates AWS locally, including S3. In production, drop this service and the S3_*
@@ -17373,11 +17397,9 @@ import {
17373
17397
  SidebarFooter,
17374
17398
  SidebarHeader,
17375
17399
  SidebarMenu,
17376
- SidebarMenuButton,
17377
17400
  SidebarMenuItem,
17378
17401
  useSidebar,
17379
17402
  } from "@{{projectName}}/user-interface/components/sidebar";
17380
- import Link from "next/link";
17381
17403
  import { usePathname } from "next/navigation";
17382
17404
  import * as React from "react";
17383
17405
  import { useEffect } from "react";
@@ -17407,14 +17429,10 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
17407
17429
  <SidebarHeader>
17408
17430
  <SidebarMenu>
17409
17431
  <SidebarMenuItem>
17410
- <SidebarMenuButton
17411
- asChild
17412
- className="hover:text-foreground h-10 group-data-[collapsible=icon]:px-0!"
17413
- >
17414
- <Link href="/dashboard">
17415
- <Logo />
17416
- </Link>
17417
- </SidebarMenuButton>
17432
+ {/* Logo is already a link home; wrapping it in a button or link would nest anchors. */}
17433
+ <div className="flex h-10 items-center px-2 group-data-[collapsible=icon]:px-0">
17434
+ <Logo />
17435
+ </div>
17418
17436
  </SidebarMenuItem>
17419
17437
  </SidebarMenu>
17420
17438
  </SidebarHeader>
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { a as createAliceCli, c as router, d as CompatibilityError, f as DatabaseSetupError, g as ValidationError, h as UserCancelledError, i as create, l as ProjectLauncherSchema, m as ProjectCreationError, n as SchemaNameSchema, o as createVirtual, p as DirectoryConflictError, r as add, s as getSchemaResult, t as Result, u as CLIError } from "./src-BvIQ4Brs.mjs";
3
- import { i as VirtualFileSystem, n as GeneratorError, o as generate, r as TEMPLATE_COUNT, t as EMBEDDED_TEMPLATES } from "./dist-CzWVjjVd.mjs";
2
+ import { a as createAliceCli, c as router, d as CompatibilityError, f as DatabaseSetupError, g as ValidationError, h as UserCancelledError, i as create, l as ProjectLauncherSchema, m as ProjectCreationError, n as SchemaNameSchema, o as createVirtual, p as DirectoryConflictError, r as add, s as getSchemaResult, t as Result, u as CLIError } from "./src-D7QghBiE.mjs";
3
+ import { i as VirtualFileSystem, n as GeneratorError, o as generate, r as TEMPLATE_COUNT, t as EMBEDDED_TEMPLATES } from "./dist-CWkT5Epw.mjs";
4
4
  export { CLIError, CompatibilityError, DatabaseSetupError, DirectoryConflictError, EMBEDDED_TEMPLATES, GeneratorError, ProjectCreationError, ProjectLauncherSchema, Result, SchemaNameSchema, TEMPLATE_COUNT, UserCancelledError, ValidationError, VirtualFileSystem, add, create, createAliceCli, createVirtual, generate, getSchemaResult, router };
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as dependencyVersionMap, c as processAddonTemplates, d as processPnpmWorkspaceConfig, f as processTemplateString, h as join, i as VirtualFileSystem, l as processAddonsDeps, m as dirname, n as GeneratorError, o as generate, p as processTurboConfig, s as generateReproducibleCommand, t as EMBEDDED_TEMPLATES, u as processPackageConfigs } from "./dist-CzWVjjVd.mjs";
2
+ import { a as dependencyVersionMap, c as processAddonTemplates, d as processPnpmWorkspaceConfig, f as processTemplateString, h as join, i as VirtualFileSystem, l as processAddonsDeps, m as dirname, n as GeneratorError, o as generate, p as processTurboConfig, s as generateReproducibleCommand, t as EMBEDDED_TEMPLATES, u as processPackageConfigs } from "./dist-CWkT5Epw.mjs";
3
3
  import z, { z as z$1 } from "zod";
4
4
  import { os } from "@orpc/server";
5
5
  import { Result, Result as Result$1, TaggedError } from "better-result";
package/dist/virtual.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import { i as VirtualFileSystem, n as GeneratorError, o as generate, r as TEMPLATE_COUNT, t as EMBEDDED_TEMPLATES } from "./dist-CzWVjjVd.mjs";
2
+ import { i as VirtualFileSystem, n as GeneratorError, o as generate, r as TEMPLATE_COUNT, t as EMBEDDED_TEMPLATES } from "./dist-CWkT5Epw.mjs";
3
3
  import { Result } from "better-result";
4
4
  export { EMBEDDED_TEMPLATES, GeneratorError, Result, TEMPLATE_COUNT, VirtualFileSystem, generate };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicesystems/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Scaffold an opinionated full-stack TypeScript monorepo: Next.js, Expo, Hono, Drizzle, Better Auth",
5
5
  "keywords": [
6
6
  "better-auth",
@@ -60,7 +60,7 @@
60
60
  "dev": "tsdown --watch",
61
61
  "check-types": "tsc --noEmit",
62
62
  "check-test-types": "tsc --noEmit -p tsconfig.tests.json",
63
- "test": "bun test ./test",
63
+ "test": "bun test --timeout 30000 ./test",
64
64
  "test:ci": "bun run build && ALICE_SKIP_EXTERNAL_COMMANDS=1 ALICE_TEST_MODE=1 bun run test --bail=5",
65
65
  "test:complete": "cd ../.. && bun run build && cd apps/cli && ALICE_BUILD_SAMPLES=1 bun run test --bail=5",
66
66
  "prepublishOnly": "npm run build"