next-steps.ts — astro Source File
Architecture documentation for next-steps.ts, a typescript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c8aa5740_2077_557c_0f1e_cd681764abed["next-steps.ts"] 0d2ed6a4_ba13_53b9_91e8_1ccbdcaac22b["../messages.js"] c8aa5740_2077_557c_0f1e_cd681764abed --> 0d2ed6a4_ba13_53b9_91e8_1ccbdcaac22b 6d4ff623_63ed_2360_85a7_197d38173f66["./actions/context.js"] c8aa5740_2077_557c_0f1e_cd681764abed --> 6d4ff623_63ed_2360_85a7_197d38173f66 c52a5f83_66e3_37d7_9ebb_767f7129bc62["node:path"] c8aa5740_2077_557c_0f1e_cd681764abed --> c52a5f83_66e3_37d7_9ebb_767f7129bc62 style c8aa5740_2077_557c_0f1e_cd681764abed fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import path from 'node:path';
import { nextSteps, say } from '../messages.js';
import type { Context } from './context.js';
export async function next(
ctx: Pick<Context, 'hat' | 'tie' | 'cwd' | 'packageManager' | 'skipHouston'>,
) {
let projectDir = path.relative(process.cwd(), ctx.cwd);
const commandMap: { [key: string]: string } = {
npm: 'npm run dev',
bun: 'bun run dev',
yarn: 'yarn dev',
pnpm: 'pnpm dev',
};
const devCmd = commandMap[ctx.packageManager as keyof typeof commandMap] || 'npm run dev';
await nextSteps({ projectDir, devCmd });
if (!ctx.skipHouston) {
await say(['Good luck out there, astronaut! 🚀'], { hat: ctx.hat, tie: ctx.tie });
}
return;
}
Domain
Subdomains
Functions
Dependencies
- ../messages.js
- ./actions/context.js
- node:path
Source
Frequently Asked Questions
What does next-steps.ts do?
next-steps.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in next-steps.ts?
next-steps.ts defines 1 function(s): next.
What does next-steps.ts depend on?
next-steps.ts imports 3 module(s): ../messages.js, ./actions/context.js, node:path.
Where is next-steps.ts in the architecture?
next-steps.ts is located at packages/create-astro/src/actions/next-steps.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/create-astro/src/actions).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free