You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: Warn when running from local node_modules #87
Users who have sequant as a local dependency (in their project's package.json) will run the local version instead of fetching from npm when using npx sequant.
This caused confusion when a user had an old local install with a buggy hardcoded version (0.1.0), while thinking they were running the latest.
Solution
Detect if CLI is running from a project's node_modules and warn:
// bin/cli.ts - early in startupconstisLocalInstall=__dirname.includes('/node_modules/sequant/');if(isLocalInstall){console.warn(chalk.yellow('⚠️ Running sequant from local node_modules\n'+' For latest version: npx sequant@latest\n'+' To remove local: npm uninstall sequant\n'));}
Why This Matters
Scenario
What user expects
What happens
npx sequant with local dep
Latest from npm
Uses stale node_modules
npx sequant@latest
Latest from npm
✅ Correct
npx sequant without local dep
Latest from npm
✅ Correct
The warning makes the hidden behavior visible.
Acceptance Criteria
Warning shown when running from */node_modules/sequant/*
Warning includes remediation steps (npx @latest, npm uninstall)
Warning is yellow/non-blocking (doesn't prevent execution)
Warning does NOT show when running from npx cache (~/.npm/_npx/)
Warning does NOT show when running from global install
Edge Cases
Some users may intentionally pin a local version - warning is informational only
Don't warn for npx cache locations (those are expected)
Discovered From
Session where user's workout project had "sequant": "^1.1.2" in package.json with stale node_modules/sequant containing buggy build.
Activity
admarble commentedon Jan 18, 2026
📋 Implementation Plan
Acceptance Criteria
*/node_modules/sequant/*~/.npm/_npx/)Verification Methods
isLocalNodeModulesInstall()returns falseisLocalNodeModulesInstall()returns falseImplementation Steps
bin/cli.ts- Add local install detection + warning at startupKey Decision
--quietflag: Will suppress the warning for users who intentionally pin local versionsEffort
src/lib/version-check.ts)🤖 Generated by /spec
feat(#87): warn when running from local node_modules