♻️ refactor(deps): Update

This commit is contained in:
web@ppanel
2024-12-13 23:42:23 +07:00
parent 37d408f6bd
commit 19837a1032
23 changed files with 2746 additions and 2333 deletions
+9 -1
View File
@@ -117,9 +117,17 @@ function runCommand(command, args, options) {
async function installComponents() {
try {
console.log('Installing all default Shadcn components in directory:', targetDir);
const registry = await fetch('https://ui.aceternity.com/registry');
const registryJson = await registry.json();
const components = registryJson
.filter(
(item) =>
!['card-spotlight', 'canvas-reveal-effect', 'sparkles', 'cover'].includes(item.name),
)
.map((item) => `https://ui.aceternity.com/registry/${item.name}.json`);
// Install AceternityUI a Shadcn components
await runCommand('npx', ['aceternity-ui@latest', 'add', '-y', '-o', '-a'], {
await runCommand('npx', ['shadcn@latest', 'add', ...components], {
cwd: targetDir,
shell: true,
});