From f966d6cba8209febd67f4b9b8a6b167238fb538d Mon Sep 17 00:00:00 2001 From: Hunter Johnston Date: Sat, 27 May 2023 16:09:11 -0400 Subject: [PATCH] initial changeset --- packages/cli/CHANGELOG.md | 7 +++++++ packages/cli/package.json | 2 +- packages/cli/src/index.ts | 16 ++-------------- 3 files changed, 10 insertions(+), 15 deletions(-) create mode 100644 packages/cli/CHANGELOG.md diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md new file mode 100644 index 000000000..d8f70aeef --- /dev/null +++ b/packages/cli/CHANGELOG.md @@ -0,0 +1,7 @@ +# shadcn-svelte + +## 0.0.2 + +### Patch Changes + +- Initial release diff --git a/packages/cli/package.json b/packages/cli/package.json index 6303b6061..51f0fd173 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "shadcn-svelte", - "version": "0.0.1", + "version": "0.0.2", "description": "Add components to your apps.", "publishConfig": { "access": "public" diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index bd8ee698c..fca983269 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -75,21 +75,9 @@ async function main() { ]); dependenciesSpinner.succeed(); - // Ensure styles directory exists. - if (!projectInfo?.appDir) { - const stylesDir = "./src/styles"; - if (!existsSync(path.resolve(stylesDir))) { - await fs.mkdir(path.resolve(stylesDir), { - recursive: true - }); - } - } + // Update styles + let stylesDestination = "./src/app.postcss"; - // Update styles.css - let stylesDestination = "./src/styles/globals.css"; - if (projectInfo?.appDir) { - stylesDestination = "./src/app/globals.css"; - } const stylesSpinner = ora( `Adding styles with CSS variables...` ).start();