cschroeter / park-ui

Beautifully designed components built with Ark UI and Panda CSS that work with a variety of JS frameworks.
https://park-ui.com
MIT License
1.63k stars 71 forks source link

[Feature Request] - Ability to specify tsconfig filename #306

Closed xeinebiu closed 2 months ago

xeinebiu commented 4 months ago

The issue at the latest version is that we are forced to have tsconfig.json. On NX Monorepo, that is called tsconfig.base.json on root and I could not find a way how to specify this on parkui config.

I would recommend

{
  "$schema": "https://park-ui.com/schema.json",
  "cssFramework": "tailwind",
  "jsFramework": "react",
  "importAliases": {
    "components": "@/theme",
    "utils": "@/theme"
  },
  "useReactServerComponents": false,
  "tsConfigPath": "...path here"   <--- Suggestion
}
cschroeter commented 2 months ago

@xeinebiu

I've updated the CLI so that a tsconfig.json is no longer required to install components. This benefits users with setups like nx workspaces that lack a tsconfig.json file.