@clack/prompts implement
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.jsonfromindex.jsto the built file./dist/index.js, and set the main entry toindex.tsto support TypeScript-based development. - Added a new build configuration file
tsup.config.tsto usetsupfor building the project, targeting ESM output and ES2020 compatibility.
Scripts and Dependency Management:
- Introduced new scripts in
package.jsonfor starting, building, formatting, and updating dependencies, streamlining common development tasks. - Updated and added dependencies in
package.json, including switching frompromptsto@clack/prompts, addingcross-spawn, and including TypeScript-related dev dependencies. Also updated thepnpmpackage manager version. - Added
onlyBuiltDependenciesconfiguration topnpm-workspace.yamlto specify that onlyesbuildshould be built as a dependency, optimizing workspace builds.
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.