{"_id":"@dudousxd/nestjs-inertia-cli","name":"@dudousxd/nestjs-inertia-cli","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@dudousxd/nestjs-inertia-cli","version":"0.1.0","description":"Onboarding CLI for @dudousxd/nestjs-inertia — scaffold a project with `init`, diagnose setup pitfalls with `doctor`.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/DavideCarvalho/nestjs-inertia.git","directory":"packages/cli"},"author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"type":"commonjs","main":"dist/index.js","types":"dist/index.d.ts","bin":{"nestjs-inertia":"dist/bin.js"},"devDependencies":{"@types/node":"^20.0.0","typescript":"^5.4.0","vitest":"^4.1.0"},"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","test:watch":"vitest","typecheck":"tsc -p tsconfig.json --noEmit"},"_id":"@dudousxd/nestjs-inertia-cli@0.1.0","bugs":{"url":"https://github.com/DavideCarvalho/nestjs-inertia/issues"},"homepage":"https://github.com/DavideCarvalho/nestjs-inertia#readme","_integrity":"sha512-iYUcUK3ejsmdf/5VYm6PR50hCHhfObL1p8Ru46to/4arnDbsko9oj769dSBWoRVF9W/3n8JdBCdNmoQ3oDtOrw==","_resolved":"/tmp/fdce37ba9dedc713496bcb1dabae745f/dudousxd-nestjs-inertia-cli-0.1.0.tgz","_from":"file:dudousxd-nestjs-inertia-cli-0.1.0.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-iYUcUK3ejsmdf/5VYm6PR50hCHhfObL1p8Ru46to/4arnDbsko9oj769dSBWoRVF9W/3n8JdBCdNmoQ3oDtOrw==","shasum":"db06c59433eaaef45f34f977ea4a3a4d230548fc","tarball":"https://registry.npmjs.org/@dudousxd/nestjs-inertia-cli/-/nestjs-inertia-cli-0.1.0.tgz","fileCount":24,"unpackedSize":60349,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@dudousxd%2fnestjs-inertia-cli@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHyFqHV01u/Yt6QzKZGHYgfm82y/E6qskpj+kshaAkv8AiAUlJPf4lkKa3yZSjubiyxl6RZWEckGTBB5JCOC2Wz9zA=="}]},"_npmUser":{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"},"directories":{},"maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-inertia-cli_0.1.0_1783861914390_0.10314294622335995"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-12T13:11:54.180Z","0.1.0":"2026-07-12T13:11:54.527Z","modified":"2026-07-12T13:11:54.955Z"},"maintainers":[{"name":"dudousxd","email":"davi_carvalho96@hotmail.com"}],"description":"Onboarding CLI for @dudousxd/nestjs-inertia — scaffold a project with `init`, diagnose setup pitfalls with `doctor`.","homepage":"https://github.com/DavideCarvalho/nestjs-inertia#readme","repository":{"type":"git","url":"git+https://github.com/DavideCarvalho/nestjs-inertia.git","directory":"packages/cli"},"author":{"name":"Davi Carvalho","email":"davi@goflip.ai"},"bugs":{"url":"https://github.com/DavideCarvalho/nestjs-inertia/issues"},"license":"MIT","readme":"# @dudousxd/nestjs-inertia-cli\n\nOnboarding CLI for [`@dudousxd/nestjs-inertia`](https://davidecarvalho.github.io/nestjs-inertia/).\n\n```bash\npnpm add -D @dudousxd/nestjs-inertia-cli\n\npnpm exec nestjs-inertia init      # scaffold shell, Vite entry, shared codegen config\npnpm exec nestjs-inertia doctor    # diagnose setup pitfalls\n```\n\n## `init`\n\nDetects your frontend framework (React / Vue 3 / Svelte 5) from `package.json` and scaffolds\nthe current recommended setup:\n\n- `inertia/index.html` — root view shell with `@inertia` / `@inertiaHead` / `@vite` directives\n- `inertia/app.tsx` (or `.ts`) — `createInertiaApp` Vite entry\n- `nestjs-codegen.config.ts` — shared codegen config with `nestjsInertiaCodegen()` registered,\n  written as ONE exported object so the CLI and `NestjsCodegenModule.forRoot` never drift\n- `nestjs-inertia.d.ts` — stub for handwritten registry augmentations\n- `vite.config.ts` — `nestInertia` plugin + `@` / `~` / `~codegen` aliases\n- `.gitignore` — appends `.nestjs-inertia/`\n\nIt then prints the manual wiring: the `InertiaModule.forRoot({ ..., codegen: { enabled: false } })`\nregistration snippet, the `setupInertiaVite` bootstrap, and the codegen scripts.\n\nIdempotent: existing files are never overwritten without `--force`. Use `--dry-run` to preview,\n`--framework react|vue|svelte` to override detection.\n\n## `doctor`\n\nChecks the known pitfalls, each with a pass/warn/fail line and a docs pointer:\n\n- `InertiaModule` registered (module entry resolved from the codegen config)\n- legacy auto-watch disabled (`codegen: { enabled: false }`)\n- codegen configured, `nestjsInertiaCodegen()` registered, and no CLI/module config drift\n- root view shell + Vite entry + `nestInertia` plugin present\n- Vite client manifest exists after a build (`dist/inertia/client/.vite/manifest.json`)\n- `@dudousxd/nestjs-inertia >= 1.4.4` (streaming-response fix)\n- registry `.d.ts` uses the current flat `InertiaPages` shape (not nested `InertiaRegistry.pages`)\n- peer coherence: codegen + extension pair, Inertia adapter v3+, no legacy codegen package\n- `.gitignore` covers `.nestjs-inertia/`\n\nExits `1` when any check fails.\n","readmeFilename":"README.md","_rev":"1-b5c5df453db28488bc3f1df5e49093bc"}