chore(build): remove redundant code (#18224)

This commit is contained in:
dopamine 2024-09-17 12:29:54 +08:00 committed by GitHub
parent cd01ceb8f0
commit be79242a20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 22 deletions

View File

@ -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": {

View File

@ -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()