cobalt-ui icon indicating copy to clipboard operation
cobalt-ui copied to clipboard

Files not created when running `npx tz init`

Open lukasoppermann opened this issue 1 month ago • 2 comments

Versions

  • cli 0.10.3

Node.js version

v22.18.0

OS + version

macOS 26.1

Description

When running the setup I don't get a terrazzo.config.js file. However, I expect this from the way it is written in the docs.

Am I doing something wrong or is this a bug?

The @terrazzo/plugin-css plugin is also not installed.

Reproduction

npm i -D @terrazzo/cli

npx tz init
// choose none for design system
// choose css for tool

Expected result

It should create the config file and install @terrazzo/plugin-css

Extra

lukasoppermann avatar Nov 28 '25 10:11 lukasoppermann

Thanks for the bug! I just tested it and I think it’s a UX problem. The first question, “Start from existing design system?” is a “radio selection” and allows Enter.

Image

However the second question, “Install plugins?” is a checklist list and has different keyboard controls. Space selects the checkbox and Enter confirms the selection.

Image

So hitting Enter, Enter wouldn’t install any plugins or set up the config file, and it feels broken!


To solve this issue, since there’s a “None” option on the first question, I’ll add a “None” option on the second question and require 1 or more selected. Or just something that makes it clear the keyboard commands have changed.

drwpow avatar Nov 28 '25 20:11 drwpow

I would love if I could just use Enter for both, this would make it very easy.

lukasoppermann avatar Nov 29 '25 08:11 lukasoppermann