Skip to content

Commit

Permalink
enhanced degit command
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Oct 6, 2024
1 parent e8b1afe commit cae3ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/website/app/demos/[demoname]/Social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function Social({

const handleClick = async () => {
await navigator.clipboard.writeText(
`npx -y degit pmndrs/examples/demos/${demoname}`
`cd $(mktemp -d ${demoname}.XXX) && npx -y degit pmndrs/examples/demos/${demoname} . && npm i && npm run dev`
);
setCopied(true);
};
Expand Down

0 comments on commit cae3ab8

Please sign in to comment.