feat: support nub as a package manager #300
Open
afonsojramos(GitHub profile, opens in a new tab)wants to merge 6 commits into
main fromrefs/pull/300/head·opened Showing 17 changed files with 7 additions and 2 deletions (loading 14).
x
@@ -0,0 +1,5 @@
+---
+'@tanstack/intent': patch
+---
+
+Detect nub projects from `nub.lock`, a `nub@` `packageManager` field, or a single `devEngines.packageManager` declaration, and generate `nub exec intent` commands for them so guidance, mappings, and hooks run the installed CLI. A single `devEngines.packageManager` entry is now read for every package manager when `packageManager` is absent. `nub.lock` joins the lockfiles that review ignores.
@@ -114,7 +114,7 @@
-Files that Intent writes or that carry no library guidance do not appear as unmapped changes. The default list covers the agent instruction files (`AGENTS.md`, `CLAUDE.md`, `.cursorrules`, `.github/copilot-instructions.md`), `.claude-plugin/**`, `.cursor-plugin/**`, `.github/workflows/check-skills.yml`, `.intent/**`, `**/package.json`, and the lockfiles (`pnpm-lock.yaml`, `package-lock.json`, `npm-shrinkwrap.json`, `yarn.lock`, `bun.lock`).
+Files that Intent writes or that carry no library guidance do not appear as unmapped changes. The default list covers the agent instruction files (`AGENTS.md`, `CLAUDE.md`, `.cursorrules`, `.github/copilot-instructions.md`), `.claude-plugin/**`, `.cursor-plugin/**`, `.github/workflows/check-skills.yml`, `.intent/**`, `**/package.json`, and the lockfiles (`pnpm-lock.yaml`, `package-lock.json`, `npm-shrinkwrap.json`, `yarn.lock`, `bun.lock`, `nub.lock`).
1 addition and 1 deletion+1-1evals/intent-discovery/harness/intent-hooks/hook-core.mjsModifiedView file
@@ -1,5 +1,5 @@
- /(?:^|&&|\|\||;|\|)\s*((?:bunx\s+@tanstack\/intent(?:@latest)?)|(?:pnpm\s+exec\s+intent)|(?:pnpm\s+dlx\s+@tanstack\/intent(?:@latest)?)|(?:npx\s+@tanstack\/intent(?:@latest)?)|(?:yarn\s+dlx\s+@tanstack\/intent(?:@latest)?)|(?:intent))\s+(list|load)(?:\s+([^\s|;&]+))?/i
+ /(?:^|&&|\|\||;|\|)\s*((?:bunx\s+@tanstack\/intent(?:@latest)?)|(?:pnpm\s+exec\s+intent)|(?:nub\s+exec\s+intent)|(?:pnpm\s+dlx\s+@tanstack\/intent(?:@latest)?)|(?:npx\s+@tanstack\/intent(?:@latest)?)|(?:yarn\s+dlx\s+@tanstack\/intent(?:@latest)?)|(?:intent))\s+(list|load)(?:\s+([^\s|;&]+))?/i