Skip to content

fix: include dev dependencies in Render build#159

Merged
nullure merged 1 commit into
CaviraOSS:mainfrom
haosenwang1018:fix/render-types-build
Apr 10, 2026
Merged

fix: include dev dependencies in Render build#159
nullure merged 1 commit into
CaviraOSS:mainfrom
haosenwang1018:fix/render-types-build

Conversation

@haosenwang1018
Copy link
Copy Markdown
Contributor

Summary

  • update the Render build command to install dev dependencies before running the TypeScript build
  • fix deploys where NODE_ENV=production causes npm install to skip typescript and the @types/* packages needed by tsc

Reproduction

With the current render.yaml settings:

  • rootDir: packages/openmemory-js
  • NODE_ENV=production
  • buildCommand: npm install && npm run build

A production install omits dev dependencies, so the build fails locally with:

  • sh: 1: tsc: not found

That matches the reported Render deployment failure pattern.

Testing

  • cd packages/openmemory-js && NODE_ENV=production npm install --ignore-scripts --no-audit --no-fund && npm run build (fails before this change because dev dependencies are skipped)
  • cd packages/openmemory-js && npm install --include=dev --ignore-scripts --no-audit --no-fund && npm run build (passes)

Closes #142

@nullure nullure merged commit 1745530 into CaviraOSS:main Apr 10, 2026
3 checks passed
Copy link
Copy Markdown
Member

@nullure nullure left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] render deploy doesn't work

2 participants