Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ jobs:
env:
PACKRAT_NATIVEWIND_UI_GITHUB_TOKEN: ${{ secrets.PACKRAT_NATIVEWIND_UI_GITHUB_TOKEN }}
run: bun install --frozen-lockfile

- name: Run API tests
run: bun run --cwd packages/api test
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Install dependencies
env:
PACKRAT_NATIVEWIND_UI_GITHUB_TOKEN: ${{ secrets.PACKRAT_NATIVEWIND_UI_GITHUB_TOKEN }}
run: bun install
run: bun install --frozen-lockfile

# Confirm the key CLI tools installed by the workspace are usable.
# Scoped to cloud-agent-safe tasks (lint/typecheck/tests); no mobile simulator tooling.
Expand Down
3 changes: 2 additions & 1 deletion apps/admin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packrat-admin-app",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"scripts": {
"build": "next build",
Expand Down Expand Up @@ -32,6 +32,7 @@
"next-themes": "^0.4.6",
"react": "catalog:",
"react-dom": "catalog:",
"recharts": "3.8.1",
"sonner": "^2.0.7",
"tailwind-merge": "^2.5.5",
"zod": "catalog:"
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default (): ExpoConfig =>
{
name: getAppName(),
slug: 'packrat',
version: '2.0.20',
version: '2.0.21',
scheme: 'packrat',
web: {
bundler: 'metro',
Expand Down
2 changes: 1 addition & 1 deletion apps/expo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packrat-expo-app",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"main": "expo-router/entry",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion apps/guides/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packrat-guides-app",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"scripts": {
"build": "bun run build-content && next build",
Expand Down
2 changes: 1 addition & 1 deletion apps/landing/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packrat-landing-app",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"scripts": {
"build": "next build",
Expand Down
30 changes: 15 additions & 15 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "packrat-monorepo",
"version": "2.0.20",
"version": "2.0.21",
"workspaces": [
"apps/*",
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/analytics",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/api-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/api-client",
"version": "1.0.0",
"version": "2.0.21",
"private": true,
"description": "PackRat typed API client — authenticated HTTP client with error handling and MCP result helpers",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/container_src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "container",
"version": "2.0.20",
"version": "2.0.21",
"type": "module",
"dependencies": {
"@aws-sdk/client-s3": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/api",
"version": "2.0.20",
"version": "2.0.21",
"scripts": {
"check-types": "tsc --noEmit",
"check-types-watch": "tsc --noEmit --watch",
Expand Down
7 changes: 4 additions & 3 deletions packages/api/src/db/seed-e2e-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

import { neon, neonConfig } from '@neondatabase/serverless';
import { nodeEnv } from '@packrat/env/node';
import { eq } from 'drizzle-orm';
import { drizzle, type NeonHttpDatabase } from 'drizzle-orm/neon-http';
import { drizzle as drizzlePg, type NodePgDatabase } from 'drizzle-orm/node-postgres';
Expand All @@ -33,9 +34,9 @@ const isStandardPostgresUrl = (url: string) => {
};

async function seedE2EUser() {
const dbUrl = process.env.NEON_DATABASE_URL;
const email = process.env.E2E_TEST_EMAIL;
const password = process.env.E2E_TEST_PASSWORD;
const dbUrl = nodeEnv.NEON_DATABASE_URL;
const email = nodeEnv.E2E_TEST_EMAIL;
const password = nodeEnv.E2E_TEST_PASSWORD;

if (!dbUrl) throw new Error('NEON_DATABASE_URL is required');
if (!email) throw new Error('E2E_TEST_EMAIL is required');
Expand Down
7 changes: 5 additions & 2 deletions packages/api/src/routes/admin/analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ analyticsRoutes.get('/', (c) =>
breakdown: '/api/admin/analytics/platform/breakdown',
},
catalog: {
dashboard: '/api/admin/analytics/catalog',
health: '/api/admin/analytics/catalog/health',
overview: '/api/admin/analytics/catalog/overview',
brands: '/api/admin/analytics/catalog/brands',
prices: '/api/admin/analytics/catalog/prices',
etl: '/api/admin/analytics/catalog/etl',
embeddings: '/api/admin/analytics/catalog/embeddings',
},
},
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/checks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/checks",
"version": "2.0.19",
"version": "2.0.21",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/cli",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"type": "module",
"bin": {
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';
import { nodeEnv } from '@packrat/env/node';
import { defineCommand, runMain } from 'citty';
import consola from 'consola';
import { z } from 'zod';
Expand Down Expand Up @@ -87,7 +88,7 @@ const main = defineCommand({
runMain(main).catch((error: unknown) => {
if (error instanceof Error) {
consola.error(error.message);
if (process.env.DEBUG) {
if (nodeEnv.DEBUG) {
consola.error(error.stack ?? '(no stack trace)');
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/config",
"version": "2.0.19",
"version": "2.0.21",
"private": true,
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/env",
"version": "0.0.1",
"version": "2.0.21",
"private": true,
"type": "module",
"exports": {
Expand Down
7 changes: 7 additions & 0 deletions packages/env/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export const nodeEnvSchema = z.object({

// ── Test runner flags ─────────────────────────────────────────────
VITEST: z.string().optional(),

// ── Debug / verbose ───────────────────────────────────────────────
DEBUG: z.string().optional(),

// ── E2E test credentials ──────────────────────────────────────────
E2E_TEST_EMAIL: z.string().email().optional(),
E2E_TEST_PASSWORD: z.string().min(1).optional(),
});

export type NodeEnv = z.infer<typeof nodeEnvSchema>;
Expand Down
2 changes: 1 addition & 1 deletion packages/guards/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/guards",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/mcp",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"description": "PackRat MCP Server — outdoor adventure planning via Model Context Protocol",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/ui",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"dependencies": {
"@packrat-ai/nativewindui": "^2.0.2"
Expand Down
7 changes: 1 addition & 6 deletions packages/web-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packrat/web-ui",
"version": "2.0.20",
"version": "2.0.21",
"private": true,
"type": "module",
"exports": {
Expand Down Expand Up @@ -71,10 +71,5 @@
"react": "catalog:",
"recharts": "3.8.1",
"tailwindcss": "catalog:"
},
"peerDependenciesMeta": {
"recharts": {
"optional": true
}
}
}
Loading