Skip to content

Make dev scripts cross-platform - #65

Merged
jackshim415 merged 5 commits into
mainfrom
jackshim415/dev-script-cross-platform
Sep 11, 2026
Merged

jackshim415 merged 5 commits into
mainfrom
jackshim415/dev-script-cross-platform

Conversation

@jackshim415

Copy link
Copy Markdown
Contributor

No description provided.

@railway-app

railway-app Bot commented Sep 11, 2026

Copy link
Copy Markdown

🚅 Environment lovat-server-pr-65 in lovat has no services deployed.

Copilot AI left a comment

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.

🟡 Changes recommended

The production script has a critical dependency issue, and dependency compatibility and upgrade scope require resolution.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates npm scripts for cross-platform environment variables, refreshes dependencies, formats Prisma configuration, and adds weekly Dependabot updates.

Changes:

  • Adds cross-env to development and production scripts.
  • Refreshes runtime and development dependencies.
  • Adds weekly npm Dependabot updates.
  • Normalizes Prisma generator formatting.
File summaries
File Changes and findings
package.json Critical (3 votes): cross-env is only in devDependencies but is used by the production start script. Moderate (1 vote): posthog-node@5.51.7 does not support the pinned Node 22.20.0. Moderate (2 votes): Broad runtime-major upgrades should be separately validated or documented and tested.
package-lock.json Synchronizes resolved dependency versions.
prisma/schema.prisma Formats generator configuration.
.github/dependabot.yml Configures weekly npm updates.
Review details

Suppressed comments (2)

package.json:33

  • This lockfile resolves posthog-node@5.51.7, whose engine range is ^20.20.0 || >=22.22.0, but this repository pins Node 22.20.0 in package.json, .nvmrc, the README, and CI. The upgraded dependency is outside the supported runtime range; align the Node pins with the dependency or choose a compatible PostHog version before merging.
    "posthog-node": "^5.51.7",

package.json:29

  • This upgrades the runtime to Express 5, but the TypeScript dependency remains on @types/express 4.x (package-lock.json resolves 4.17.25). The handlers will be type-checked against a different Express API than the one deployed; use matching Express 5 typings and validate the migration, or keep Express on 4.x in this script-focused change.
    "express": "^5.2.1",
  • Files reviewed: 3/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
"dev": "cross-env NODE_ENV=development tsx watch src/server.ts",
"build": "tsc",
"start": "node dist/src/server.js --omit=dev",
"start": "cross-env NODE_ENV=production node dist/src/server.js",
Comment thread package.json
"crypto-js": "^4.2.0",
"csv-stringify": "^6.8.3",
"dotenv": "^17.4.2",
"express": "^5.2.1",
@jackshim415
jackshim415 requested a lite review from Copilot September 11, 2026 03:38

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@jackshim415
jackshim415 merged commit 35d8195 into main Sep 11, 2026
3 checks passed
@jackshim415
jackshim415 deleted the jackshim415/dev-script-cross-platform branch September 11, 2026 03:46
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.

2 participants