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
18 changes: 16 additions & 2 deletions .github/scripts/configure-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function isCI(): boolean {
);
}

function isCFPages(): boolean {
return process.env.CF_PAGES === '1';
}

function printLocalFix(): void {
console.error(`\n❌ ${TOKEN_VAR} is not exported in your shell.`);
console.error('\nBun reads bunfig.toml before the preinstall hook runs, so the token');
Expand All @@ -47,8 +51,18 @@ async function configureDeps() {
}

if (isCI()) {
console.error(`❌ ${TOKEN_VAR} not found in CI environment`);
console.error(`Set ${TOKEN_VAR} in your CI secrets and expose it to this job.`);
if (isCFPages()) {
console.error(`❌ ${TOKEN_VAR} not found in Cloudflare Pages build environment.`);
console.error('Add it as an environment variable in the CF Pages project settings:');
console.error(
' dash.cloudflare.com → Pages → packrat-guides → Settings → Environment variables',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Hardcoded CF Pages project name may cause confusion.

Line 58 hardcodes "packrat-guides" in the navigation path. If other apps in this monorepo are also deployed to CF Pages, this instruction will be incorrect for those builds.

CF Pages typically provides a CF_PAGES_PROJECT_NAME environment variable. Consider either:

  1. Dynamically inserting the project name from the environment
  2. Making the path generic without a specific project name
📝 Proposed fix to make the path generic
-      console.error(
-        '  dash.cloudflare.com → Pages → packrat-guides → Settings → Environment variables',
-      );
+      console.error(
+        '  dash.cloudflare.com → Pages → [your-project] → Settings → Environment variables',
+      );

Or with dynamic project name:

       console.error('Add it as an environment variable in the CF Pages project settings:');
+      const projectName = process.env.CF_PAGES_PROJECT_NAME || '[your-project]';
       console.error(
-        '  dash.cloudflare.com → Pages → packrat-guides → Settings → Environment variables',
+        `  dash.cloudflare.com → Pages → ${projectName} → Settings → Environment variables`,
       );
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/scripts/configure-deps.ts at line 58, The hardcoded Cloudflare Pages
project name "packrat-guides" in the string on configure-deps.ts should be made
generic or dynamic: update the array entry that currently contains ' 
dash.cloudflare.com → Pages → packrat-guides → Settings → Environment variables'
to either a generic path like '  dash.cloudflare.com → Pages → <project> →
Settings → Environment variables' or construct it with the CF_PAGES_PROJECT_NAME
env var (e.g. use process.env.CF_PAGES_PROJECT_NAME with a sensible fallback) so
the navigation instruction is correct for other apps.

);
console.error(` Variable name: ${TOKEN_VAR}`);
console.error(' Value: a GitHub PAT with read:packages scope');
} else {
console.error(`❌ ${TOKEN_VAR} not found in CI environment`);
console.error(`Set ${TOKEN_VAR} in your CI secrets and expose it to this job.`);
}
process.exit(1);
}

Expand Down
32 changes: 16 additions & 16 deletions apps/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@
"@radix-ui/react-slot": "catalog:",
"@radix-ui/react-tabs": "catalog:",
"@radix-ui/react-tooltip": "catalog:",
"@tanstack/react-query": "^5.70.0",
"@types/leaflet": "^1.9.21",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"leaflet": "^1.9.4",
"lucide-react": "^1.8.0",
"next": "^15.3.4",
"next-themes": "^0.4.6",
"@tanstack/react-query": "catalog:",
"@types/leaflet": "catalog:",
"class-variance-authority": "catalog:",
"clsx": "catalog:",
"leaflet": "catalog:",
"lucide-react": "catalog:",
"next": "catalog:",
"next-themes": "catalog:",
"nuqs": "^2.8.9",
"react": "catalog:",
"react-dom": "catalog:",
"react-error-boundary": "^6.1.1",
"recharts": "3.8.1",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"recharts": "catalog:",
"sonner": "catalog:",
"tailwind-merge": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@types/node": "^25.6.0",
"@types/react": "~19.2.10",
"@types/react-dom": "^19.1.6",
"postcss": "^8.5.6",
"postcss-import": "^16.1.1",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"postcss": "catalog:",
"postcss-import": "catalog:",
"tailwindcss": "catalog:",
"typescript": "catalog:"
}
Expand Down
28 changes: 14 additions & 14 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@
"@shopify/flash-list": "2.0.2",
"@stardazed/streams-text-encoding": "^1.0.2",
"@tanstack/react-form": "^1.0.5",
"@tanstack/react-query": "^5.70.0",
"@tanstack/react-query": "catalog:",
"ai": "catalog:",
"better-auth": "^1.6.9",
"better-auth": "catalog:",
"burnt": "^0.13.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"date-fns": "^4.1.0",
"class-variance-authority": "catalog:",
"clsx": "catalog:",
"date-fns": "catalog:",
"expo": "~55.0.17",
"expo-apple-authentication": "~55.0.13",
"expo-blur": "~55.0.14",
Expand Down Expand Up @@ -116,20 +116,20 @@
"expo-system-ui": "~55.0.17",
"expo-updates": "~55.0.21",
"expo-web-browser": "~55.0.15",
"google-auth-library": "^10.1.0",
"google-auth-library": "catalog:",
"he": "^1.2.0",
"i": "^0.3.7",
"i18next": "^25.8.18",
"jotai": "^2.12.2",
"leaflet": "^1.9.4",
"jotai": "catalog:",
"leaflet": "catalog:",
"llama.rn": "0.10.1",
"nanoid": "^5.1.9",
"nativewind": "^4.2.3",
"radash": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"react-i18next": "^17.0.4",
"react-leaflet": "^5.0.0",
"react-leaflet": "catalog:",
"react-native": "0.83.6",
"react-native-blob-util": "^0.24.5",
"react-native-css-interop": "^0.2.3",
Expand All @@ -147,20 +147,20 @@
"react-native-web": "^0.21.0",
"react-native-worklets": "0.7.4",
"rn-icon-mapper": "^0.0.1",
"tailwind-merge": "^3.5.0",
"tailwind-merge": "catalog:",
"use-debounce": "^10.0.5",
"zod": "catalog:"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@biomejs/biome": "2.4.6",
"@types/he": "^1.2.3",
"@types/leaflet": "^1.9.21",
"@types/react": "~19.2.10",
"@types/leaflet": "catalog:",
"@types/react": "catalog:",
"@types/ungap__structured-clone": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@vitest/coverage-v8": "~3.1.4",
"@vitest/coverage-v8": "catalog:",
"ajv": "^8.12.0",
"eslint": "^8.57.0",
"eslint-config-universe": "^15.0.3",
Expand All @@ -169,7 +169,7 @@
"rimraf": "^6.0.1",
"tailwindcss": "catalog:",
"typescript": "catalog:",
"vitest": "~3.1.4"
"vitest": "catalog:"
},
"expo": {
"install": {
Expand Down
987 changes: 0 additions & 987 deletions apps/guides/bun.lock

This file was deleted.

56 changes: 28 additions & 28 deletions apps/guides/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
"update-authors": "bun run scripts/update-authors.ts"
},
"dependencies": {
"@ai-sdk/openai": "^3.0.53",
"@ai-sdk/openai": "catalog:",
"@elysiajs/eden": "catalog:",
"@hookform/resolvers": "^5.2.2",
"@hookform/resolvers": "catalog:",
"@packrat/api": "workspace:*",
"@packrat/env": "workspace:*",
"@packrat/guards": "workspace:*",
Expand Down Expand Up @@ -55,50 +55,50 @@
"@radix-ui/react-toggle-group": "catalog:",
"@radix-ui/react-tooltip": "catalog:",
"@tailwindcss/typography": "^0.5.16",
"@tanstack/react-query": "^5.70.0",
"@tanstack/react-query-devtools": "^5.70.0",
"@tanstack/react-query": "catalog:",
"@tanstack/react-query-devtools": "catalog:",
"ai": "catalog:",
"autoprefixer": "^10.4.21",
"autoprefixer": "catalog:",
"chalk": "catalog:",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.1.1",
"date-fns": "^4.1.0",
"embla-carousel-react": "8.6.0",
"class-variance-authority": "catalog:",
"clsx": "catalog:",
"cmdk": "catalog:",
"date-fns": "catalog:",
"embla-carousel-react": "catalog:",
"fs": "^0.0.1-security",
"gray-matter": "^4.0.3",
"input-otp": "1.4.1",
"lucide-react": "^1.8.0",
"gray-matter": "catalog:",
"input-otp": "catalog:",
"lucide-react": "catalog:",
"mdx": "^0.3.1",
"next": "^15.3.4",
"next-themes": "^0.4.6",
"next": "catalog:",
"next-themes": "catalog:",
"path": "^0.12.7",
"react": "catalog:",
"react-day-picker": "9.14.0",
"react-day-picker": "catalog:",
"react-dom": "catalog:",
"react-hook-form": "^7.58.1",
"react-resizable-panels": "^4.10.0",
"react-hook-form": "catalog:",
"react-resizable-panels": "catalog:",
"remark": "^15.0.1",
"remark-gfm": "^4.0.1",
"remark-html": "^16.0.1",
"remark-parse": "^11.0.0",
"slugify": "^1.6.6",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"sonner": "catalog:",
"tailwind-merge": "catalog:",
"unified": "^11.0.0",
"vaul": "^1.1.2",
"vaul": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@lhci/cli": "^0.14.0",
"@lhci/cli": "catalog:",
"@types/mdx": "^2.0.13",
"@types/node": "^25.6.0",
"@types/react": "~19.2.10",
"@types/react-dom": "^19.1.6",
"postcss": "^8.5.6",
"postcss-import": "^16.1.1",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"postcss": "catalog:",
"postcss-import": "catalog:",
"tailwindcss": "catalog:",
"typescript": "catalog:",
"vitest": "~3.1.4"
"vitest": "catalog:"
}
}
48 changes: 24 additions & 24 deletions apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@emotion/is-prop-valid": "^1.3.1",
"@hookform/resolvers": "^5.2.2",
"@hookform/resolvers": "catalog:",
"@packrat/guards": "workspace:*",
"@packrat/web-ui": "workspace:*",
"@radix-ui/react-accordion": "catalog:",
Expand Down Expand Up @@ -45,36 +45,36 @@
"@radix-ui/react-toggle": "catalog:",
"@radix-ui/react-toggle-group": "catalog:",
"@radix-ui/react-tooltip": "catalog:",
"autoprefixer": "^10.4.21",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "1.1.1",
"date-fns": "^4.1.0",
"embla-carousel-react": "8.6.0",
"autoprefixer": "catalog:",
"class-variance-authority": "catalog:",
"clsx": "catalog:",
"cmdk": "catalog:",
"date-fns": "catalog:",
"embla-carousel-react": "catalog:",
"framer-motion": "^12.19.1",
"input-otp": "1.4.1",
"lucide-react": "^1.8.0",
"next": "^15.3.4",
"next-themes": "^0.4.6",
"input-otp": "catalog:",
"lucide-react": "catalog:",
"next": "catalog:",
"next-themes": "catalog:",
"react": "catalog:",
"react-day-picker": "9.14.0",
"react-day-picker": "catalog:",
"react-dom": "catalog:",
"react-hook-form": "^7.58.1",
"react-resizable-panels": "^4.10.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"vaul": "^1.1.2",
"react-hook-form": "catalog:",
"react-resizable-panels": "catalog:",
"sonner": "catalog:",
"tailwind-merge": "catalog:",
"vaul": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@lhci/cli": "^0.14.0",
"@types/node": "^25.6.0",
"@types/react": "~19.2.10",
"@types/react-dom": "^19.1.6",
"postcss": "^8.5.6",
"postcss-import": "^16.1.1",
"@lhci/cli": "catalog:",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"postcss": "catalog:",
"postcss-import": "catalog:",
"tailwindcss": "catalog:",
"typescript": "catalog:",
"vitest": "~3.1.4"
"vitest": "catalog:"
}
}
30 changes: 15 additions & 15 deletions apps/trails/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@
"@radix-ui/react-separator": "catalog:",
"@radix-ui/react-tabs": "catalog:",
"@radix-ui/react-toast": "catalog:",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"input-otp": "1.4.1",
"leaflet": "^1.9.4",
"lucide-react": "^1.8.0",
"next": "^15.3.4",
"class-variance-authority": "catalog:",
"clsx": "catalog:",
"input-otp": "catalog:",
"leaflet": "catalog:",
"lucide-react": "catalog:",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"react-leaflet": "^5.0.0",
"sonner": "^2.0.7",
"tailwind-merge": "^3.5.0",
"react-leaflet": "catalog:",
"sonner": "catalog:",
"tailwind-merge": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@types/leaflet": "^1.9.21",
"@types/node": "^25.6.0",
"@types/react": "~19.2.10",
"@types/react-dom": "^19.1.6",
"postcss": "^8.5.6",
"postcss-import": "^16.1.1",
"@types/leaflet": "catalog:",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"postcss": "catalog:",
"postcss-import": "catalog:",
"tailwindcss": "catalog:",
"typescript": "catalog:"
}
Expand Down
26 changes: 13 additions & 13 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@
"@packrat/env": "workspace:*",
"@packrat/guards": "workspace:*",
"@packrat/web-ui": "workspace:*",
"@tanstack/react-query": "^5.70.0",
"@tanstack/react-query-devtools": "^5.70.0",
"jotai": "^2.12.2",
"@tanstack/react-query": "catalog:",
"@tanstack/react-query-devtools": "catalog:",
"jotai": "catalog:",
"js-cookie": "^3.0.5",
"lucide-react": "^1.8.0",
"next": "^15.3.4",
"next-themes": "^0.4.6",
"lucide-react": "catalog:",
"next": "catalog:",
"next-themes": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
"recharts": "3.8.1",
"recharts": "catalog:",
"zod": "catalog:"
},
"devDependencies": {
"@types/js-cookie": "^3.0.6",
"@types/node": "^25.6.0",
"@types/react": "~19.2.10",
"@types/react-dom": "^19.1.6",
"autoprefixer": "^10.4.21",
"postcss": "^8.5.6",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"autoprefixer": "catalog:",
"postcss": "catalog:",
"tailwindcss": "catalog:",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-animate": "catalog:",
"typescript": "catalog:"
}
}
Loading
Loading