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();