{"_id":"@71zone/rundev","name":"@71zone/rundev","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@71zone/rundev","version":"0.2.0","type":"module","description":"Smart dev server launcher with environment switching","license":"MIT","repository":{"type":"git","url":"git+https://github.com/71zone/rundev.git"},"homepage":"https://github.com/71zone/rundev#readme","bugs":{"url":"https://github.com/71zone/rundev/issues"},"keywords":["cli","dev","environment","runner","scripts"],"bin":{"rundev":"dist/index.js"},"scripts":{"dev":"tsup --watch","build":"tsup","prepublishOnly":"pnpm build","release":"./scripts/release.sh","release:patch":"./scripts/release.sh patch","release:minor":"./scripts/release.sh minor","release:major":"./scripts/release.sh major"},"dependencies":{"@clack/prompts":"^0.9.1","citty":"^0.1.6","conf":"^13.1.0","execa":"^9.5.2"},"devDependencies":{"@types/node":"^22.10.10","semver":"^7.7.3","tsup":"^8.3.5","typescript":"^5.7.3"},"engines":{"node":">=18"},"_id":"@71zone/rundev@0.2.0","gitHead":"4e62fc2b2b0df989280f30dc44100bf52b96dcb2","_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-E6nPNfN+gyGqDGQ7RffhOKYm4Kf1Uk8kI6//z5sxaxPqhybk+23xlGASPO7ZJj1aUgg9Bv4pHElqWI/8gAPWlw==","shasum":"508b600117335e9545ab04938d20982016e104df","tarball":"https://registry.npmjs.org/@71zone/rundev/-/rundev-0.2.0.tgz","fileCount":4,"unpackedSize":10601,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@71zone%2frundev@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDq0HB7kWlnPg3j1TkNnwrV7yxv4Q2HKxQJnwa8Q97HOAiBJ3WgJmPv54wbzgrykWDUJRu9oXBl5Hk+xmkR6to0bKQ=="}]},"_npmUser":{"name":"71zone","email":"hvanlong@pm.me"},"directories":{},"maintainers":[{"name":"71zone","email":"hvanlong@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rundev_0.2.0_1769707958435_0.7286952179218673"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-29T17:32:38.317Z","0.2.0":"2026-01-29T17:32:38.574Z","modified":"2026-01-29T17:32:38.954Z"},"maintainers":[{"name":"71zone","email":"hvanlong@pm.me"}],"description":"Smart dev server launcher with environment switching","homepage":"https://github.com/71zone/rundev#readme","keywords":["cli","dev","environment","runner","scripts"],"repository":{"type":"git","url":"git+https://github.com/71zone/rundev.git"},"bugs":{"url":"https://github.com/71zone/rundev/issues"},"license":"MIT","readme":"# rundev\n\nSmart dev server launcher with environment switching.\n\n## Features\n\n- **Environment Switching**: Automatically copies environment files based on project patterns\n- **Script Discovery**: Scans `package.json` for `dev*` scripts and prompts for selection\n- **Last Script Memory**: Use `-l` flag to re-run the last selected script\n- **Auto-detection**: Detects environment from `.env` `STAGE=` or `$AWS_PROFILE`\n\n## Installation\n\n```bash\n# Clone and build\ngit clone https://github.com/71zone/rundev.git\ncd rundev\npnpm install\npnpm build\n\n# Link globally\nnpm link\n```\n\n## Usage\n\n```bash\n# Prompt for script selection with environment\nrundev staging\n\n# Use last selected script\nrundev staging -l\n\n# Auto-detect environment from .env or AWS_PROFILE\nrundev\nrundev -l\n```\n\n## Configuration\n\n### Global Config: `~/.config/rundev/config.json`\n\n```json\n{\n  \"envDir\": \"~/.config/env\",\n  \"globalEnvFile\": \"~/.config/env/global\",\n  \"mappings\": [\n    {\n      \"pattern\": \"*/admin/web\",\n      \"envPath\": \"admin/{env}\"\n    },\n    {\n      \"pattern\": \"*/web\",\n      \"envPath\": \"{env}\"\n    }\n  ]\n}\n```\n\n### Local Config (per-project): `.rundevrc.json`\n\n```json\n{\n  \"envPath\": \"custom/{env}\",\n  \"scriptFilter\": \"dev*\"\n}\n```\n\nLocal config overrides global mappings for that project.\n\n## How It Works\n\n1. Loads config (global + local override)\n2. Detects or uses provided environment name\n3. Copies `{envDir}/{envPath}` to `.env`, appending global env file if exists\n4. Scans `package.json` for scripts matching filter (default: `dev*`)\n5. Prompts for selection (or uses last with `-l`)\n6. Runs the selected script\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-e6ecc6b8f3bd9c3475d285a98bd0402e"}