Minor Changes
-
213eb37: Add the default
pandacommand (no subcommand) that runs the full build — codegen then cssgen — in a single
driver pass, restoring the v1 ergonomic where the common case is one word.- Shares the build across both passes (one config load, merged diagnostics, one summary line).
- Supports
--outdir,--outfile,--splitting,--clean,--check,--watch, and the common flags.--outdir
relocates both the generated system and the CSS file under one root. - Named subcommands (
codegen,cssgen,init, …) must come first (panda codegen …); a leading flag runs the
default build (panda --watch).
-
213eb37: Add the
panda debugcommand — dumps the resolved config and per-file extraction for bug reports.- writes
info.json(platform, node, config path),config.json,<file>.extract.jsonper source, and the project
styles.cssunder<outdir>/debug. - flags:
--outdir,--dry(print to stdout),--only-config. - v2 emits atomic CSS at the project level, so the dump carries one project stylesheet rather than a per-file slice.
- writes
Patch Changes
-
88095b5: Scaffold and install the default presets in
panda initso new projects are styled out of the box.v2 resolves presets explicitly — a config without
presetsproduces a bare system (nobg/colorutilities, no
fontSizes/spacing scales, no_hover/_activeconditions). The generatedpanda.config.tsnow includes
presets: ['@pandacss/preset-base', '@pandacss/preset-panda'], andpanda initinstalls both as devDependencies of
the project so the string specifiers resolve from the project root — including under pnpm's isolatednode_modules.- the package manager is detected from the
packageManagerfield (corepack), then the lockfile, defaulting to npm. --no-installopts out: scaffolds a bare config (presets: []) and installs nothing.- with no usable
package.json, the config is scaffolded bare and a hint explains what to add — codegen still
succeeds. - re-running
initon an existing config doesn't touch dependencies;--forcere-scaffolds and installs.
- the package manager is detected from the
-
f7315fe: Improve the CLI surface with standard devtool commands and version output.
- Add
panda build,panda dev,panda check,panda info, andpanda doctor. - Keep advanced
codegen,cssgen, andbuildinfocommands working. - Replace
inspectwithinfoandvalidatewithdoctor. - Replace
--silent,--quiet, and--verbosewith--log-level. - Use kebab-case shared flags like
--max-warnings,--watch-debounce,--trace-output, and--trace-file. - Validate CLI flags with typed schemas and report invalid values clearly.
- Fix
panda --versionandpanda -vto print the CLI package version.
- Add
-
Updated dependencies [349e7ef]
-
Updated dependencies [07eafef]
- @pandacss/config@2.0.0-beta.1
- @pandacss/compiler@2.0.0-beta.1
- @pandacss/compiler-shared@2.0.0-beta.1