Skip to content

The swizzle CLI should prompt for TS usage #9402

@slorber

Description

@slorber

Have you read the Contributing Guidelines on issues?

Motivation

When using the swizzle CLI, we can get TypeScript copies of the theme files, but this requires to provide the --typescript option ahead of time.

yarn workspace website swizzle // will always copy JS files

yarn workspace website swizzle --typescript // will copy TS files, if available

When running yarn workspace website swizzle, the CLI should more interactive and promp the user if they want to use TypeScript.

To disable the promp, a language should be provided explicitly:

yarn workspace website swizzle --javascript
yarn workspace website swizzle --typescript

Related to #9401 (DX should be consistent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    apprenticeIssues that are good candidates to be handled by a Docusaurus apprentice / traineeproposalThis issue is a proposal, usually non-trivial change

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions