create-vite-extra icon indicating copy to clipboard operation
create-vite-extra copied to clipboard

@clack/prompts implement

Open Sumangal44 opened this issue 4 months ago • 1 comments

This pull request updates the build system and dependency management for the project, transitioning the main entry point to TypeScript and introducing a modern build workflow. The changes enhance maintainability and developer experience by adding new scripts, updating dependencies, and configuring the build process.

Build and Entry Point Updates:

  • Changed the CLI entry point in package.json from index.js to the built file ./dist/index.js, and set the main entry to index.ts to support TypeScript-based development.
  • Added a new build configuration file tsup.config.ts to use tsup for building the project, targeting ESM output and ES2020 compatibility.

Scripts and Dependency Management:

  • Introduced new scripts in package.json for starting, building, formatting, and updating dependencies, streamlining common development tasks.
  • Updated and added dependencies in package.json, including switching from prompts to @clack/prompts, adding cross-spawn, and including TypeScript-related dev dependencies. Also updated the pnpm package manager version.
  • Added onlyBuiltDependencies configuration to pnpm-workspace.yaml to specify that only esbuild should be built as a dependency, optimizing workspace builds.

Sumangal44 avatar Aug 15 '25 10:08 Sumangal44

Hey, thanks for the PR. However this is a bit difficult for me to review as a lot of changes are made at once. I understand it's a bit cumbersome, but it would be helpful if each changes are made as separates PRs, e.g. TypeScript conversion, @clack/prompts swap, other dependency alignments, etc. This makes it easier for me to maintain the project in the future.

bluwy avatar Sep 17 '25 02:09 bluwy