Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Makisuo committed Jan 19, 2025
1 parent 0eb42f6 commit 723a401
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Binary file modified next-app/bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"embla-carousel-react": "^8.5.2",
"justd-icons": "^1.10.20",
"motion": "^11.18.1",
"next": "15.1.2",
"react": "^19.0.0",
"react-aria": "^3.37.0",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class UserCancellationError extends Error {

const nanoid = customAlphabet("123456789QAZWSXEDCRFVTGBYHNUJMIKOLP", 8)

export const addBlock = async () => {
export const addBlock = async ({ components }: { components: string[] }) => {
const config = readUser(FILENAME)

const res = await fetch(`${DOMAIN}/api/blocks/wow`, {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ program
.command("block [components...]")
.option("--skip <type>", "Skip")
.option("-o, --overwrite", "Override existing components")
.action(async () => {
await addBlock()
.action(async (components, options) => {
await addBlock({ components })
})

/**
Expand Down

0 comments on commit 723a401

Please sign in to comment.