Skip to content

chore(mise): auto-install locked npm dependencies - #16

Merged
Guria merged 1 commit into
mainfrom
t3code/investigate-posthog-integration
Sep 9, 2026
Merged

chore(mise): auto-install locked npm dependencies#16
Guria merged 1 commit into
mainfrom
t3code/investigate-posthog-integration

Conversation

@vekilibot

@vekilibot vekilibot Bot commented Sep 9, 2026

Copy link
Copy Markdown

Adds a mise deps provider so any mise task (including mr dev) auto-installs locked npm dependencies from package-lock.json before running — fresh worktrees no longer fail with astro: not found.

[deps.npm]
auto = true
sources = ["package-lock.json"]
outputs = ["node_modules/.package-lock.json"]
run = "npm ci --no-audit --no-fund"

Verified by removing node_modules and running mise run dev: mise deps installed 238 packages and Astro started successfully.


Created by an agent via vekili.

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.

🟢 Approval recommended

The change is small, TOML syntax is valid, and it directly addresses the reported failure mode without introducing risky behavior.

Pull request overview

Adds a mise dependency provider so that running mise tasks (notably mise run dev) automatically installs Node dependencies from the lockfile, preventing “astro: not found” in fresh worktrees.

Changes:

  • Introduces a [deps.npm] configuration that runs npm ci --no-audit --no-fund automatically.
  • Uses package-lock.json as the dependency source and node_modules/.package-lock.json as the output marker for caching.
File summaries
File Description
.config/mise/conf.d/tasks-dev.toml Adds an npm deps provider so mise tasks auto-install locked dependencies before running the dev task.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@Guria
Guria merged commit 3aae91e into main Sep 9, 2026
1 check passed
@Guria
Guria deleted the t3code/investigate-posthog-integration branch September 9, 2026 17:16
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