start-package
TypeScript package scaffold
Create a minimal Node.js library from the files in assets/template/. Keep the generated project small and preserve the dual ESM/CJS package contract.
Setup survey
Before writing files, show one compact setup survey. Use text-entry fields for package metadata; do not present values as choice/select options. Prefill each field with its default when the interface supports editable defaults. Otherwise show the default in the prompt and let an empty response accept it.
Always include NAME in the survey, even when it can be inferred. Default it to the basename of the current working directory, converted to lowercase. For example, a folder named TEST-2 must prefill test-2. Keep the field editable so the user can choose another package name.
Ask only for values that cannot be derived from the survey answers: