Skip to content

Commit 0374512

Browse files
author
apex-ai-net
committed
fix(build): resolve Netlify build errors
- Exclude scripts directory from TypeScript compilation - Move dotenv and eslint to production dependencies - Fixes 'Cannot find module dotenv' error in scripts/analyze-db-schema.ts - Fixes 'ESLint must be installed' error during Netlify builds - Verified: local build passes successfully
1 parent a02880e commit 0374512

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@
102102
"typescript": "5.9.2",
103103
"vaul": "^1.1.2",
104104
"web-vitals": "^4.2.4",
105-
"zod": "^3.25.76"
105+
"zod": "^3.25.76",
106+
"dotenv": "^17.2.3",
107+
"eslint": "^9.34.0"
106108
},
107109
"devDependencies": {
108110
"@netlify/plugin-nextjs": "^5.13.5",
@@ -115,8 +117,6 @@
115117
"@typescript-eslint/parser": "^8.40.0",
116118
"@vitejs/plugin-react": "^5.0.1",
117119
"@vitest/coverage-v8": "^3.2.4",
118-
"dotenv": "^17.2.3",
119-
"eslint": "^9.34.0",
120120
"eslint-config-next": "^15.5.0",
121121
"jsdom": "^26.1.0",
122122
"tsx": "^4.20.6",

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
2424
"exclude": [
2525
"node_modules",
26+
"scripts",
27+
"scripts/**/*",
2628
"tests/**/*",
2729
"**/*.test.ts",
2830
"**/*.test.tsx",
@@ -33,7 +35,6 @@
3335
"mentoloop-gpt5-template",
3436
"mentoloop-gpt5-template/**/*",
3537
"convex-archived-20250929",
36-
"convex-archived-20250929/**/*",
37-
"scripts/migrate/**/*"
38+
"convex-archived-20250929/**/*"
3839
]
3940
}

0 commit comments

Comments
 (0)