diff --git a/internal/metadata/package.json b/internal/metadata/package.json index 6e4e2698f9..b51d0b6d03 100644 --- a/internal/metadata/package.json +++ b/internal/metadata/package.json @@ -15,7 +15,6 @@ "scripts": { "build": "run-p \"build:*\"", "build:contributor": "tsx src/contributor.ts", - "build:components": "tsx src/components.ts", "dev": "DEV=1 pnpm run build" }, "devDependencies": { diff --git a/internal/metadata/src/components.ts b/internal/metadata/src/components.ts deleted file mode 100644 index 604d36be42..0000000000 --- a/internal/metadata/src/components.ts +++ /dev/null @@ -1,21 +0,0 @@ -import path from 'path' -import glob from 'fast-glob' -import chalk from 'chalk' -import consola from 'consola' -import { ensureDir, projRoot, writeJson } from '@element-plus/build-utils' - -const pathOutput = path.resolve(__dirname, '..', 'dist') - -async function main() { - await ensureDir(pathOutput) - - const components = await glob('*', { - cwd: path.resolve(projRoot, 'packages/components'), - onlyDirectories: true, - }) - - await writeJson(path.resolve(pathOutput, 'components.json'), components) - consola.success(chalk.green('Component list generated')) -} - -main()