Skip to content

Commit 9d1b91c

Browse files
committed
chore: update register script
1 parent d65de06 commit 9d1b91c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/ui/script/registry.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { exec } from 'node:child_process';
22
import fs from 'node:fs/promises';
33
import path from 'node:path';
44

5+
import { rimraf } from 'rimraf';
6+
57
import { registerType } from './registry-type';
68
import { getRegistryUi } from './registry-ui';
79
import { 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

3340
async function buildRegistry() {

0 commit comments

Comments
 (0)