-
Notifications
You must be signed in to change notification settings - Fork 3
ENG-847 include, do not build dependencies. #431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,41 +7,16 @@ | |
| "./globals.css": "./src/globals.css", | ||
| "./postcss.config": "./postcss.config.mjs", | ||
| "./tailwind.config": "./tailwind.config.ts", | ||
| "./lib/*": { | ||
| "types": "./dist/src/lib/*.d.ts", | ||
| "require": "./dist/src/lib/*.js", | ||
| "default": "./dist/src/lib/*.js" | ||
| }, | ||
| "./hooks/*": { | ||
| "types": "./dist/src/hooks/*.d.ts", | ||
| "require": "./dist/src/hooks/*.js", | ||
| "default": "./dist/src/hooks/*.js" | ||
| }, | ||
| "./components/*": { | ||
| "types": "./dist/src/components/*.d.ts", | ||
| "require": "./dist/src/components/*.js", | ||
| "default": "./dist/src/components/*.js" | ||
| } | ||
| }, | ||
| "typesVersions": { | ||
| "*": { | ||
| "lib/*": [ | ||
| "dist/lib/*.d.ts" | ||
| ], | ||
| "hooks/*": [ | ||
| "dist/hooks/*.d.ts" | ||
| ], | ||
| "components/*": [ | ||
| "dist/components/*.d.ts" | ||
| ] | ||
| } | ||
| "./lib/*": "./src/lib/*.ts", | ||
| "./hooks/*": "./src/hooks/*.ts", | ||
| "./components/*": "./src/components/*.tsx" | ||
| }, | ||
|
Comment on lines
+10
to
13
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainSource .ts/.tsx exports: ensure apps transpile external packages. Same risk as utils; verify Next/Vite transpile @repo/ui and that Storybook (if any) is configured similarly. Use the same script I shared for utils; additionally check for Storybook: 🏁 Script executed: #!/bin/bash
fd -t f -a 'main.(js|ts|cjs|mjs|ts|tsx)' apps | rg -n 'storybook' -n || trueLength of output: 0 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "=== packages/ui/package.json (summary) ==="
if [ -f packages/ui/package.json ]; then
jq '{name: .name, main: .main, types: .types, exports: .exports, files: .files}' packages/ui/package.json || true
echo "---- full file ----"
sed -n '1,240p' packages/ui/package.json || true
else
echo "packages/ui/package.json not found"
fi
echo
echo "=== Search for storybook references and .storybook dirs ==="
rg -n --hidden --no-ignore -S "storybook" || true
find . -type d -name ".storybook" -print || true
echo
echo "=== Search for Next/Vite transpile-related config/usages ==="
rg -n --hidden --no-ignore -S "transpilePackages|next-transpile-modules|withTM|transpile" || true
rg -n --hidden --no-ignore -S "vite.config|optimizeDeps|noExternal|ssr.noExternal|server.noExternal" || true
echo
echo "=== Show next.config.* files (if any) ==="
find . -type f -name "next.config.*" -print -exec sed -n '1,240p' {} \; || true
echo
echo "=== Show vite.config.* files (if any) ==="
find . -type f -name "vite.config.*" -print -exec sed -n '1,240p' {} \; || true
echo
echo "=== Search for imports referencing a ui package (patterns) ==="
rg -n --hidden --no-ignore -S "from ['\"][^'\"]*ui['\"]|require\\(['\"][^'\"]*ui['\"]\\)" || true
echo
echo "=== Search apps/ for package.json scripts mentioning storybook or next/vite ==="
rg -n --hidden --no-ignore -S '"storybook"|"next"|"vite"' apps || trueLength of output: 3756 Exporting source (.ts/.tsx) from @repo/ui — publish compiled JS or enable per-app transpilation
🤖 Prompt for AI Agents |
||
| "scripts": { | ||
| "lint": "eslint .", | ||
| "build": "tsc", | ||
| "lint:fix": "eslint . --fix", | ||
| "generate:component": "turbo gen react-component", | ||
| "check-types": "tsc --emitDeclarationOnly --skipLibCheck", | ||
| "check-types": "tsc --noEmit --skipLibCheck", | ||
| "ui": "npx shadcn@latest" | ||
| }, | ||
| "devDependencies": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,12 +40,11 @@ | |
| ], | ||
| "tasks": { | ||
| "build": { | ||
| "dependsOn": ["^build"], | ||
| "dependsOn": ["@repo/database#genenv"], | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reverted in future PR |
||
| "inputs": ["$TURBO_DEFAULT$", ".env*"], | ||
| "outputs": [".next/**", "!.next/cache/**", "dist/**", "src/dbTypes.ts"] | ||
| }, | ||
| "build-schema": { | ||
| "dependsOn": ["^build-schema"], | ||
| "inputs": ["$TURBO_DEFAULT$", ".env*"], | ||
| "outputs": ["src/dbTypes.ts"] | ||
| }, | ||
|
|
@@ -60,7 +59,17 @@ | |
| "cache": false, | ||
| "persistent": true, | ||
| "inputs": ["$TURBO_DEFAULT$", ".env*"], | ||
| "dependsOn": ["^build"] | ||
| "dependsOn": ["@repo/database#genenv"] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reverted in future |
||
| }, | ||
| "roam#dev": { | ||
| "with": ["@repo/database#dev"] | ||
| }, | ||
| "website#dev": { | ||
| "with": ["@repo/database#dev"] | ||
| }, | ||
| "genenv": { | ||
| "env": ["SUPABASE_USE_DB"], | ||
| "outputs": [".env*"] | ||
| }, | ||
| "deploy": { | ||
| "cache": false, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.