@@ -2,6 +2,8 @@ import { exec } from 'node:child_process';
22import fs from 'node:fs/promises' ;
33import path from 'node:path' ;
44
5+ import { rimraf } from 'rimraf' ;
6+
57import { registerType } from './registry-type' ;
68import { getRegistryUi } from './registry-ui' ;
79import { registryUtils } from './registry-utils' ;
@@ -14,7 +16,7 @@ const registry = {
1416 dependencies : [ 'tailwind-variants' , 'lucide-react' ] ,
1517 files : [ ] ,
1618 name : 'index' ,
17- registryDependencies : [ 'utils' ] ,
19+ registryDependencies : [ 'utils' , 'types' ] ,
1820 type : 'registry:style'
1921 } ,
2022 ...getRegistryUi ( ) ,
@@ -28,6 +30,11 @@ async function writeRegistry() {
2830 const registryJson = JSON . stringify ( registry , null , 2 ) ;
2931 // eslint-disable-next-line n/prefer-global/process
3032 await fs . writeFile ( path . join ( process . cwd ( ) , `registry.json` ) , registryJson ) ;
33+
34+ // eslint-disable-next-line n/prefer-global/process
35+ const targetPath = path . join ( process . cwd ( ) , `../../playground/public/r` ) ;
36+ console . log ( '🧹 Deleting:' , targetPath ) ;
37+ rimraf . sync ( targetPath ) ;
3138}
3239
3340async function buildRegistry ( ) {
0 commit comments