Skip to content

Commit

Permalink
initial changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed May 27, 2023
1 parent 0f3ca8d commit f966d6c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
7 changes: 7 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# shadcn-svelte

## 0.0.2

### Patch Changes

- Initial release
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadcn-svelte",
"version": "0.0.1",
"version": "0.0.2",
"description": "Add components to your apps.",
"publishConfig": {
"access": "public"
Expand Down
16 changes: 2 additions & 14 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

1 comment on commit f966d6c

@vercel
Copy link

@vercel vercel bot commented on f966d6c May 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.